Some minor code cleanup resulting from a user running code through cppcheck, mostly...
[supertux.git] / src / supertux / console.cpp
index 883ec09..efc5ccd 100644 (file)
@@ -311,7 +311,7 @@ Console::autocomplete()
   sq_pop(vm, 1); // remove table
 
   // depending on number of hits, show matches or autocomplete
-  if (cmds.size() == 0) addLines("No known command starts with \""+prefix+"\"");
+  if (cmds.empty()) addLines("No known command starts with \""+prefix+"\"");
   if (cmds.size() == 1) {
     // one match: just replace input buffer with full command
     std::string replaceWith = cmds.front();