// 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)
classbase* c = queue[i];
delete c;
}
- if (list.size())
+ if (!list.empty())
{
ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "WARNING: Objects added to cull list in a destructor");
Apply();
params.push_back(method);
const std::string fp = sslapi ? sslapi->GetFingerprint(user) : "";
- if (fp.size())
+ if (!fp.empty())
params.push_back(fp);
SendSASL(user, "*", 'S', params);