diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2020-01-15 19:10:34 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2020-01-20 20:56:57 +0000 |
commit | 24a25eed1481a7c563431d79e3ad07840c0f7125 (patch) | |
tree | 3eb8a56dac620a31e6af362bf7c03201ea645771 /src/plugins/debugger/qml/qmlengine.cpp | |
parent | ad4040972b9d763b2ceaa7444d18e65dd3da2ee9 (diff) |
Use isEmpty() instead of count() or size()
Change-Id: I0a89d2808c6d041da0dc41ea5aea58e6e8759bb4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r-- | src/plugins/debugger/qml/qmlengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index 8bde882a44..fa2992ed17 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -1364,7 +1364,7 @@ void QmlEnginePrivate::scripts(int types, const QList<int> ids, bool includeSour DebuggerCommand cmd(SCRIPTS); cmd.arg(TYPES, types); - if (ids.count()) + if (!ids.isEmpty()) cmd.arg(IDS, ids); if (includeSource) @@ -1727,7 +1727,7 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data) const QVariantList actualLocations = breakpointData.value("actual_locations").toList(); const int line = breakpointData.value("line").toInt() + 1; - if (actualLocations.count()) { + if (!actualLocations.isEmpty()) { //The breakpoint requested line should be same as //actual line if (bp && bp->state() != BreakpointInserted) { |