summaryrefslogtreecommitdiff
path: root/src/libs/qmldebug/qpacketprotocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/qmldebug/qpacketprotocol.cpp')
-rw-r--r--src/libs/qmldebug/qpacketprotocol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmldebug/qpacketprotocol.cpp b/src/libs/qmldebug/qpacketprotocol.cpp
index 3bbabc1cf7..76822d34d4 100644
--- a/src/libs/qmldebug/qpacketprotocol.cpp
+++ b/src/libs/qmldebug/qpacketprotocol.cpp
@@ -254,7 +254,7 @@ qint64 QPacketProtocol::packetsAvailable() const
*/
QByteArray QPacketProtocol::read()
{
- if (0 == d->packets.count())
+ if (d->packets.isEmpty())
return QByteArray();
return d->packets.takeFirst();