From: Francis Dupont Date: Wed, 24 Jun 2015 11:04:45 +0000 (+0200) Subject: [3919] Changed size > 0 by !empty X-Git-Tag: trac3911_base~5^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43aafb6731f56c8b226761b3a233450142ac8cea;p=thirdparty%2Fkea.git [3919] Changed size > 0 by !empty --- diff --git a/src/bin/perfdhcp/tests/command_options_unittest.cc b/src/bin/perfdhcp/tests/command_options_unittest.cc index 1998b638c5..5f461ef883 100644 --- a/src/bin/perfdhcp/tests/command_options_unittest.cc +++ b/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.