2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[3919] Changed size > 0 by !empty

This commit is contained in:
Francis Dupont
2015-06-24 13:04:45 +02:00
parent b0958885ec
commit 43aafb6731

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