Browse Source

[1093] use vector.empty() instead of size() > 0

Jelte Jansen 13 years ago
parent
commit
5a8474bf5e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/log/compiler/message.cc

+ 1 - 1
src/lib/log/compiler/message.cc

@@ -474,7 +474,7 @@ errorDuplicates(MessageReader& reader) {
     // order and remove those which occur more than once (which mean that they
     // order and remove those which occur more than once (which mean that they
     // occur more than twice in the input file).
     // occur more than twice in the input file).
     MessageReader::MessageIDCollection duplicates = reader.getNotAdded();
     MessageReader::MessageIDCollection duplicates = reader.getNotAdded();
-    if (duplicates.size() > 0) {
+    if (!duplicates.empty()) {
         cout << "Error: the following duplicate IDs were found:\n";
         cout << "Error: the following duplicate IDs were found:\n";
 
 
         sort(duplicates.begin(), duplicates.end());
         sort(duplicates.begin(), duplicates.end());