forked from qt-creator/qt-creator
Fix compiler warnings
"braces around scalar initializer" and "lambda capture 'this' is not used" Amendsb60fd77fc1Amends181b362fcfChange-Id: Ie7c21db13644e98c0eec06a22f977ed4b923fae3 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -429,7 +429,7 @@ void EditorManagerPrivate::init()
|
||||
ActionBuilder save(this, Constants::SAVE);
|
||||
save.setContext(editManagerContext);
|
||||
save.bindContextAction(&m_saveAction);
|
||||
save.setOnTriggered(this, [this] { EditorManager::saveDocument(); });
|
||||
save.setOnTriggered(this, [] { EditorManager::saveDocument(); });
|
||||
|
||||
// Save As Action
|
||||
ActionBuilder saveAs(this, Constants::SAVEAS);
|
||||
|
||||
@@ -100,7 +100,7 @@ bool FormEditorPlugin::initialize([[maybe_unused]] const QStringList &arguments,
|
||||
wizard->setDescription(Tr::tr("Creates a Qt Designer form along with a matching class (C++ header and source file) "
|
||||
"for implementation purposes. You can add the form and class to an existing Qt Widget Project."));
|
||||
|
||||
return {wizard};
|
||||
return wizard;
|
||||
});
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user