aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-12-16 03:46:36 +0000
committerGravatar Sadie Powell2020-12-16 03:47:31 +0000
commit66dbd438f23a6beb06b0d44b9121deeb1e3f73bc (patch)
tree35214288e86506d739f0a4cdf59ba6e86c5ef6b5 /src/configreader.cpp
parentUpdate the misspell-fixer ignores. (diff)
Use !empty instead of size when checking if containers are empty.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index d06753423..b258d93fc 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -524,7 +524,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid)
// On first run, ports are bound later on
FailedPortList pl;
ServerInstance->BindPorts(pl);
- if (pl.size())
+ if (!pl.empty())
{
std::cout << "Warning! Some of your listener" << (pl.size() == 1 ? "s" : "") << " failed to bind:" << std::endl;
for (FailedPortList::const_iterator iter = pl.begin(); iter != pl.end(); ++iter)