forked from qt-creator/qt-creator
Fix MSVC warnings
* Missing `this` captures * Implicit size_t -> int conversion * Unused argument * Suppress warnings in clang headers Change-Id: I7083ce6ab22ee22ecc1258539e77c790acc78df1 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
75a0340a53
commit
2aca0c1b28
@@ -436,7 +436,7 @@ void QmlInspectorAgent::verifyAndInsertObjectInTree(const ObjectReference &objec
|
||||
const auto it = m_debugIdToIname.find(objectDebugId);
|
||||
if (it != m_debugIdToIname.end()) {
|
||||
const QString iname = *it;
|
||||
const int firstIndex = strlen("inspect");
|
||||
const int firstIndex = int(strlen("inspect"));
|
||||
const int secondIndex = iname.indexOf('.', firstIndex + 1);
|
||||
if (secondIndex != -1)
|
||||
engineId = iname.midRef(firstIndex + 1, secondIndex - firstIndex - 1).toInt();
|
||||
|
||||
Reference in New Issue
Block a user