Browse Source

[3919] Changed size > 0 by !empty

Francis Dupont 10 years ago
parent
commit
43aafb6731
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/perfdhcp/tests/command_options_unittest.cc

+ 1 - 1
src/bin/perfdhcp/tests/command_options_unittest.cc

@@ -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.