summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp2
-rw-r--r--src/cull_list.cpp2
-rw-r--r--src/modules/m_sasl.cpp2
3 files changed, 3 insertions, 3 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)
diff --git a/src/cull_list.cpp b/src/cull_list.cpp
index e05d44918..80d7ddb97 100644
--- a/src/cull_list.cpp
+++ b/src/cull_list.cpp
@@ -73,7 +73,7 @@ void CullList::Apply()
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();
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp
index 6aaa83f33..e202bae45 100644
--- a/src/modules/m_sasl.cpp
+++ b/src/modules/m_sasl.cpp
@@ -213,7 +213,7 @@ class SaslAuthenticator
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);