From 44986c79769d4efc2badc5b9c3df2e75e81ac28e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 29 Sep 2022 12:41:07 +0100 Subject: Use auto instead of type names where the type is obvious. --- src/modules/m_spanningtree/postcommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree/postcommand.cpp') diff --git a/src/modules/m_spanningtree/postcommand.cpp b/src/modules/m_spanningtree/postcommand.cpp index fe0857bd7..398cf05be 100644 --- a/src/modules/m_spanningtree/postcommand.cpp +++ b/src/modules/m_spanningtree/postcommand.cpp @@ -97,7 +97,7 @@ void SpanningTreeUtilities::RouteCommand(TreeServer* origin, CommandBase* thiscm } if (ServerInstance->Channels.IsPrefix(dest[0])) { - Channel* c = ServerInstance->Channels.Find(dest); + auto c = ServerInstance->Channels.Find(dest); if (!c) return; // TODO OnBuildExemptList hook was here @@ -114,7 +114,7 @@ void SpanningTreeUtilities::RouteCommand(TreeServer* origin, CommandBase* thiscm else { // user target? - User* d = ServerInstance->Users.Find(dest); + auto d = ServerInstance->Users.Find(dest); if (!d || IS_LOCAL(d)) return; TreeServer* tsd = TreeServer::Get(d)->GetRoute(); -- cgit v1.3.1-10-gc9f91