]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configreader.cpp
Use !empty instead of size when checking if containers are empty.
[user/henk/code/inspircd.git] / src / configreader.cpp
index d06753423af9df5b8779fabc2694fcadc01d7f81..b258d93fc052d84606102e0108c0caaa063fc135 100644 (file)
@@ -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)