From 66dbd438f23a6beb06b0d44b9121deeb1e3f73bc Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 16 Dec 2020 03:46:36 +0000 Subject: Use !empty instead of size when checking if containers are empty. --- src/cull_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cull_list.cpp') 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(); -- cgit v1.3.1-10-gc9f91