mirror of
https://github.com/znc/znc.git
synced 2026-05-01 11:02:27 +02:00
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:
@@ -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:");
|
||||
|
||||
Reference in New Issue
Block a user