aboutsummaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
authorAnton <vob999@bk.ru>2014-12-12 19:55:40 +0500
committerShadowNinja <shadowninja@minetest.net>2014-12-12 15:16:24 -0500
commit10e0cf8b2c27917a3fd45e73a5d835af4313db3b (patch)
tree906faf9a2e5185b1eb63060af007e070fe0097d0 /src/connection.cpp
parent83830e8682de23840675a35daa386fa2820fbb7d (diff)
downloadhax-minetest-server-10e0cf8b2c27917a3fd45e73a5d835af4313db3b.tar.gz
hax-minetest-server-10e0cf8b2c27917a3fd45e73a5d835af4313db3b.zip
Use std::string::empty() instead of size() where applicable
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 64ef9a50e..cf5be7ed6 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -1316,7 +1316,7 @@ bool ConnectionSendThread::packetsQueued()
{
std::list<u16> peerIds = m_connection->getPeerIDs();
- if ((this->m_outgoing_queue.size() > 0) && (peerIds.size() > 0))
+ if (!m_outgoing_queue.empty() && !peerIds.empty())
return true;
for(std::list<u16>::iterator j = peerIds.begin();