Commit 5a8474bf authored by Jelte Jansen's avatar Jelte Jansen
Browse files

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

parent ac03fb06
......@@ -474,7 +474,7 @@ errorDuplicates(MessageReader& reader) {
// order and remove those which occur more than once (which mean that they
// occur more than twice in the input file).
MessageReader::MessageIDCollection duplicates = reader.getNotAdded();
if (duplicates.size() > 0) {
if (!duplicates.empty()) {
cout << "Error: the following duplicate IDs were found:\n";
sort(duplicates.begin(), duplicates.end());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment