From ff7c1adf1b2290b2228e6f35c6b0cd46a7cf245d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 14 Apr 2021 23:11:53 +0100 Subject: Remove some useless getter methods and make the members public. This isn't part of a public API so we don't need to care about exposing implementation details. --- src/modules/m_spanningtree/treeserver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_spanningtree/treeserver.cpp') diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp index e2a9d1d9d..f0e85828c 100644 --- a/src/modules/m_spanningtree/treeserver.cpp +++ b/src/modules/m_spanningtree/treeserver.cpp @@ -126,7 +126,7 @@ TreeServer::TreeServer(const std::string& Name, const std::string& Desc, const s this->AddHashEntry(); Parent->Children.push_back(this); - Utils->Creator->GetLinkEventProvider().Call(&ServerProtocol::LinkEventListener::OnServerLink, this); + Utils->Creator->linkeventprov.Call(&ServerProtocol::LinkEventListener::OnServerLink, this); } void TreeServer::BeginBurst(uint64_t startms) @@ -160,7 +160,7 @@ void TreeServer::FinishBurst() unsigned long bursttime = ts - this->StartBurst; ServerInstance->SNO.WriteToSnoMask(Parent == Utils->TreeRoot ? 'l' : 'L', "Received end of netburst from \002%s\002 (burst time: %lu %s)", GetName().c_str(), (bursttime > 10000 ? bursttime / 1000 : bursttime), (bursttime > 10000 ? "secs" : "msecs")); - Utils->Creator->GetLinkEventProvider().Call(&ServerProtocol::LinkEventListener::OnServerBurst, this); + Utils->Creator->linkeventprov.Call(&ServerProtocol::LinkEventListener::OnServerBurst, this); StartBurst = 0; FinishBurstInternal(); @@ -211,7 +211,7 @@ void TreeServer::SQuitInternal(unsigned int& num_lost_servers, bool error) RemoveHash(); if (!Utils->Creator->dying) - Utils->Creator->GetLinkEventProvider().Call(&ServerProtocol::LinkEventListener::OnServerSplit, this, error); + Utils->Creator->linkeventprov.Call(&ServerProtocol::LinkEventListener::OnServerSplit, this, error); } unsigned int TreeServer::QuitUsers(const std::string& reason) -- cgit v1.3.1-10-gc9f91