BIND 10 trac1093, updated. 5a8474bf5e3b8e10959c76b573d3f0e1af03ebf1 [1093] use vector.empty() instead of size() > 0

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Mar 6 18:10:31 UTC 2012


The branch, trac1093 has been updated
       via  5a8474bf5e3b8e10959c76b573d3f0e1af03ebf1 (commit)
      from  ac03fb060596dbebbb012d091292e4c9690f1c88 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5a8474bf5e3b8e10959c76b573d3f0e1af03ebf1
Author: Jelte Jansen <jelte at isc.org>
Date:   Tue Mar 6 19:09:02 2012 +0100

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

-----------------------------------------------------------------------

Summary of changes:
 src/lib/log/compiler/message.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/log/compiler/message.cc b/src/lib/log/compiler/message.cc
index 7e79f96..cb93a10 100644
--- a/src/lib/log/compiler/message.cc
+++ b/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
     // 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());



More information about the bind10-changes mailing list