Commit 43aafb67 authored by Francis Dupont's avatar Francis Dupont
Browse files

[3919] Changed size > 0 by !empty

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