diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2019-09-11 08:22:53 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2019-09-11 15:20:34 +0000 |
commit | 2aca0c1b28fc0160fb1ed54c90bc5ffc96bd6c1b (patch) | |
tree | dd555773a722fa076fc3d092d730d62a6c058159 /src/plugins/qmldesigner/components/stateseditor | |
parent | 75a0340a5338a2f31af96b49ef1a85a475494ac0 (diff) |
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>
Diffstat (limited to 'src/plugins/qmldesigner/components/stateseditor')
-rw-r--r-- | src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp index 5f2ccabbb50..5676cc2ca40 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp @@ -184,10 +184,11 @@ void StatesEditorModel::renameState(int internalNodeId, const QString &newName) if (newName.isEmpty() ||! m_statesEditorView->validStateName(newName)) { QTimer::singleShot(0, [newName]{ - auto w = Core::AsynchronousMessageBox::warning(tr("Invalid state name"), - newName.isEmpty() ? - tr("The empty string as a name is reserved for the base state.") : - tr("Name already used in another state")); + Core::AsynchronousMessageBox::warning( + tr("Invalid state name"), + newName.isEmpty() ? + tr("The empty string as a name is reserved for the base state.") : + tr("Name already used in another state")); }); reset(); } else { |