From 2822c4ff116b515d8dd41a998cb0f6a343877b78 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 22 Aug 2019 12:54:00 +0200 Subject: [PATCH] QmlDesigner: Fix warning about unused variable Change-Id: Id12a240c5f5b72bc771847b0d255406df003fa35 Reviewed-by: Tim Jenssen --- .../components/stateseditor/stateseditormodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp index 5f2ccabbb50..bafca7fa58f 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp @@ -184,10 +184,10 @@ 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 {