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 += " "; }