Fix some compler warnings

1x warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
2x warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class]

Change-Id: I762fbe935156de9600064512bc405c6f4b2b1477
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2024-01-19 11:33:45 +01:00
parent 6015344669
commit 2c78f260d4
3 changed files with 3 additions and 3 deletions

View File

@@ -1048,7 +1048,7 @@ void FakeVimPluginPrivate::initialize()
INSTALL_HANDLER, Context(Core::Constants::C_GLOBAL), true); INSTALL_HANDLER, Context(Core::Constants::C_GLOBAL), true);
cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? Tr::tr("Meta+Shift+Y,Meta+Shift+Y") cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? Tr::tr("Meta+Shift+Y,Meta+Shift+Y")
: Tr::tr("Alt+Y,Alt+Y"))); : Tr::tr("Alt+Y,Alt+Y")));
connect(cmd->action(), &QAction::triggered, [this] { settings().writeSettings(); }); connect(cmd->action(), &QAction::triggered, [] { settings().writeSettings(); });
ActionContainer *advancedMenu = ActionContainer *advancedMenu =
ActionManager::actionContainer(Core::Constants::M_EDIT_ADVANCED); ActionManager::actionContainer(Core::Constants::M_EDIT_ADVANCED);

View File

@@ -11,7 +11,7 @@ namespace Internal {
struct RepositorySettings; struct RepositorySettings;
class ConfigureDialogPrivate; class ConfigureDialogPrivate;
class ConfigureDialog : public QDialog class ConfigureDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT

View File

@@ -10,7 +10,7 @@
namespace Haskell { namespace Haskell {
namespace Internal { namespace Internal {
class HaskellPlugin : public ExtensionSystem::IPlugin class HaskellPlugin final : public ExtensionSystem::IPlugin
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Haskell.json") Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Haskell.json")