From 10e0cf8b2c27917a3fd45e73a5d835af4313db3b Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 12 Dec 2014 19:55:40 +0500 Subject: Use std::string::empty() instead of size() where applicable --- src/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/connection.cpp') 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 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::iterator j = peerIds.begin(); -- cgit v1.2.3