From 515baaa5e7c9e355acc8a665a79f778b5b41fb6a Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 5 Feb 2020 14:13:28 +0100 Subject: [PATCH] TextEditor: Remove unused TextEditorActionHandlerPrivate::q Change-Id: I2f8c86c21e2879e36a24d645ec3670e3bcec7319 Reviewed-by: David Schulz --- src/plugins/texteditor/texteditoractionhandler.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/plugins/texteditor/texteditoractionhandler.cpp b/src/plugins/texteditor/texteditoractionhandler.cpp index 46e6801f4d2..8508f9afd8d 100644 --- a/src/plugins/texteditor/texteditoractionhandler.cpp +++ b/src/plugins/texteditor/texteditoractionhandler.cpp @@ -52,11 +52,9 @@ namespace Internal { class TextEditorActionHandlerPrivate : public QObject { Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::TextEditorActionHandler) + public: - TextEditorActionHandlerPrivate(TextEditorActionHandler *parent, - Core::Id editorId, - Core::Id contextId, - uint optionalActions); + TextEditorActionHandlerPrivate(Core::Id editorId, Core::Id contextId, uint optionalActions); QAction *registerActionHelper(Core::Id id, bool scriptable, const QString &title, const QKeySequence &keySequence, Core::Id menueGroup, @@ -121,7 +119,6 @@ public: void updateCurrentEditor(Core::IEditor *editor); public: - TextEditorActionHandler *q = nullptr; TextEditorActionHandler::TextEditorWidgetResolver m_findTextWidget; QAction *m_undoAction = nullptr; QAction *m_redoAction = nullptr; @@ -199,9 +196,8 @@ static TextEditorWidget *castWidgetToTextEditorWidget(Core::IEditor *editor) } TextEditorActionHandlerPrivate::TextEditorActionHandlerPrivate - (TextEditorActionHandler *parent, Core::Id editorId, Core::Id contextId, uint optionalActions) - : q(parent) - , m_findTextWidget(castWidgetToTextEditorWidget) + (Core::Id editorId, Core::Id contextId, uint optionalActions) + : m_findTextWidget(castWidgetToTextEditorWidget) , m_optionalActions(optionalActions) , m_editorId(editorId) , m_contextId(contextId) @@ -595,7 +591,7 @@ void TextEditorActionHandlerPrivate::updateCurrentEditor(Core::IEditor *editor) TextEditorActionHandler::TextEditorActionHandler(QObject *parent, Core::Id editorId, Core::Id contextId, uint optionalActions) - : QObject(parent), d(new Internal::TextEditorActionHandlerPrivate(this, editorId, contextId, + : QObject(parent), d(new Internal::TextEditorActionHandlerPrivate(editorId, contextId, optionalActions)) { }