mirror of
https://github.com/znc/znc.git
synced 2026-07-06 18:01:21 +02:00
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:
+3
-3
@@ -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 += " ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user