From 1c1c97cbd1d7913ac12bf550ec02c97f843a0fd3 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sun, 20 Aug 2017 13:30:50 +0200 Subject: Modernize source code: last part (#6285) * Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes --- src/network/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/connection.cpp') diff --git a/src/network/connection.cpp b/src/network/connection.cpp index a74e96784..77ce34bfd 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -1281,7 +1281,7 @@ bool ConnectionSendThread::packetsQueued() continue; for (Channel &channel : (dynamic_cast(&peer))->channels) { - if (channel.queued_commands.size() > 0) { + if (!channel.queued_commands.empty()) { return true; } } -- cgit v1.2.3