aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/utils.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-04-12 20:56:51 +0100
committerGravatar Sadie Powell2020-04-13 23:32:39 +0100
commit23f49c1192e08adea954281e84674d4393ed9831 (patch)
treef3716dc0e66bc1c08a38c4dc3d665b430c345ac9 /src/modules/m_spanningtree/utils.h
parentSwitch the dnsbl module from reference<> to std::shared_ptr<>. (diff)
Switch the spanningtree module from reference<> to std::shared_ptr<>.
Diffstat (limited to 'src/modules/m_spanningtree/utils.h')
-rw-r--r--src/modules/m_spanningtree/utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/utils.h b/src/modules/m_spanningtree/utils.h
index 01c474f8e..89e261397 100644
--- a/src/modules/m_spanningtree/utils.h
+++ b/src/modules/m_spanningtree/utils.h
@@ -101,10 +101,10 @@ class SpanningTreeUtilities : public classbase
TimeoutList timeoutlist;
/** Holds the data from the <link> tags in the conf
*/
- std::vector<reference<Link> > LinkBlocks;
+ std::vector<std::shared_ptr<Link>> LinkBlocks;
/** Holds the data from the <autoconnect> tags in the conf
*/
- std::vector<reference<Autoconnect> > AutoconnectBlocks;
+ std::vector<std::shared_ptr<Autoconnect>> AutoconnectBlocks;
/** Ping frequency of server to server links
* XXX: TreeServer constructor reads this and TreeRoot is created before the
@@ -171,7 +171,7 @@ class SpanningTreeUtilities : public classbase
/** Find a link tag from a server name
*/
- Link* FindLink(const std::string& name);
+ std::shared_ptr<Link> FindLink(const std::string& name);
/** Refresh the IP cache used for allowing inbound connections
*/