]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3919] Changed size > 0 by !empty
authorFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 11:04:45 +0000 (13:04 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 11:04:45 +0000 (13:04 +0200)
src/bin/perfdhcp/tests/command_options_unittest.cc

index 1998b638c55a666e11ea5823f9b83969eb18b1a7..5f461ef88390ef36dd679971879d61aae04e07f6 100644 (file)
@@ -785,7 +785,7 @@ TEST_F(CommandOptionsTest, Interface) {
     // The local loopback interface should be available.
     // If no interface have been found for any reason we should
     // not fail this test.
-    if (ifaces.size() > 0) {
+    if (!ifaces.empty()) {
         // Get the name of the interface we detected.
         iface_name = (*ifaces.begin())->getName();
         // Use the name in the command parser.