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
This commit is contained in:
psychon
2009-03-29 12:23:59 +00:00
parent 931701d19c
commit 8429f1274f
+3 -3
View File
@@ -52,7 +52,7 @@ public:
const CString& GetHostmask() const { return m_sHostmask; }
bool ChannelMatches(const CString& sChan) const {
for (set<CString>::iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) {
for (set<CString>::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<CString>::iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) {
for (set<CString>::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<CString>::iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) {
for (set<CString>::const_iterator it = m_ssChans.begin(); it != m_ssChans.end(); it++) {
if (!sChans.empty()) {
sChans += " ";
}