aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/qml
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2019-01-17 01:38:54 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2019-01-17 13:00:37 +0000
commit710e57a628c90259297150ab3a0ac28e315ca1af (patch)
treec9c2f66436d6b16ec37035775a334366987d17d9 /src/plugins/debugger/qml
parent8acd583d1085f5b09cf2bef61c95166083885425 (diff)
Fix warning: "Use midRef() instead of mid()"
[-Wclazy-qstring-ref] Change-Id: If8a0844b39377feb3772542559655854a92b93cd Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml')
-rw-r--r--src/plugins/debugger/qml/qmlinspectoragent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/qml/qmlinspectoragent.cpp b/src/plugins/debugger/qml/qmlinspectoragent.cpp
index 8ef259e37c2..36272270c9e 100644
--- a/src/plugins/debugger/qml/qmlinspectoragent.cpp
+++ b/src/plugins/debugger/qml/qmlinspectoragent.cpp
@@ -437,7 +437,7 @@ void QmlInspectorAgent::verifyAndInsertObjectInTree(const ObjectReference &objec
const int firstIndex = strlen("inspect");
const int secondIndex = iname.indexOf('.', firstIndex + 1);
if (secondIndex != -1)
- engineId = iname.mid(firstIndex + 1, secondIndex - firstIndex - 1).toInt();
+ engineId = iname.midRef(firstIndex + 1, secondIndex - firstIndex - 1).toInt();
}
// Still not found? Maybe we're loading the engine itself.
@@ -462,7 +462,7 @@ void QmlInspectorAgent::verifyAndInsertObjectInTree(const ObjectReference &objec
int lastIndex = iname.lastIndexOf('.');
int secondLastIndex = iname.lastIndexOf('.', lastIndex - 1);
if (secondLastIndex != WatchItem::InvalidId)
- parentId = iname.mid(secondLastIndex + 1, lastIndex - secondLastIndex - 1).toInt();
+ parentId = iname.midRef(secondLastIndex + 1, lastIndex - secondLastIndex - 1).toInt();
else
parentId = engineId;
} else {