From 8429f1274f604120e36e95f86200fadec9e1c51b Mon Sep 17 00:00:00 2001 From: psychon Date: Sun, 29 Mar 2009 12:23:59 +0000 Subject: [PATCH] autoop: Use const_iterator instead of iterator where it makes sense Thanks to KiNgMaR for the patch. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1451 726aef4b-f618-498e-8847-2d620e286838 --- modules/autoop.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/autoop.cpp b/modules/autoop.cpp index 970d0d31..730dfadf 100644 --- a/modules/autoop.cpp +++ b/modules/autoop.cpp @@ -52,7 +52,7 @@ public: const CString& GetHostmask() const { return m_sHostmask; } bool ChannelMatches(const CString& sChan) const { - for (set::iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) { + for (set::const_iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) { if (sChan.AsLower().WildCmp(*it)) { return true; } @@ -68,7 +68,7 @@ public: CString GetChannels() const { CString sRet; - for (set::iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) { + for (set::const_iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) { if (!sRet.empty()) { sRet += " "; } @@ -100,7 +100,7 @@ public: CString ToString() const { CString sChans; - for (set::iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) { + for (set::const_iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) { if (!sChans.empty()) { sChans += " "; }