Use empty() instead of size() == 0 where appropriate

This was found by cppcheck (cppcheck.sf.net).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1761 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-02-18 12:39:41 +00:00
parent 57fe412a35
commit 291ad47907
3 changed files with 10 additions and 10 deletions

View File

@@ -583,7 +583,7 @@ void CClient::UserCommand(CString& sLine) {
set<CModInfo> ssGlobalMods;
CZNC::Get().GetModules().GetAvailableMods(ssGlobalMods, true);
if (!ssGlobalMods.size()) {
if (ssGlobalMods.empty()) {
PutStatus("No global modules available.");
} else {
PutStatus("Global modules:");