Cleaned up more warnings.

This commit is contained in:
baines
2013-02-27 20:53:14 -05:00
parent c256116d81
commit 82a708d6a1
13 changed files with 38 additions and 39 deletions
+3 -3
View File
@@ -47,7 +47,7 @@ protected:
class CPartylineMod : public CModule {
public:
void ListChannelsCommand(const CString& sLine) {
if (!m_ssChannels.size()) {
if (m_ssChannels.empty()) {
PutModule("There are no open channels.");
return;
}
@@ -89,7 +89,7 @@ public:
}
}
while (m_ssChannels.size()) {
while (!m_ssChannels.empty()) {
delete *m_ssChannels.begin();
m_ssChannels.erase(m_ssChannels.begin());
}
@@ -174,7 +174,7 @@ public:
CPartylineChannel *pChan = *it;
// RemoveUser() might delete channels, so make sure our
// iterator doesn't break.
it++;
++it;
RemoveUser(&User, pChan, "KICK", "User deleted", true);
}