From b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Jan 2023 23:02:45 +0000 Subject: Qualify auto correctly in all cases. --- src/modules/m_permchannels.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_permchannels.cpp') diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index d11e0a6e3..4482795e3 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -98,7 +98,7 @@ static bool WriteDatabase(PermChannel& permchanmode, bool save_listmodes) std::string modes; std::string params; - for (const auto& lm : ServerInstance->Modes.GetListModes()) + for (auto* lm : ServerInstance->Modes.GetListModes()) { ListModeBase::ModeList* list = lm->GetList(chan); if (!list || list->empty()) @@ -215,7 +215,7 @@ public: continue; } - auto c = ServerInstance->Channels.Find(channel); + auto* c = ServerInstance->Channels.Find(channel); if (!c) { time_t TS = tag->getInt("ts", ServerInstance->Time(), 1); @@ -247,7 +247,7 @@ public: list.GetToken(modeseq); // XXX bleh, should we pass this to the mode parser instead? ugly. --w00t - for (const auto& modechr : modeseq) + for (const auto modechr : modeseq) { ModeHandler* mode = ServerInstance->Modes.FindMode(modechr, MODETYPE_CHANNEL); if (mode) -- cgit v1.3.1-10-gc9f91