From 3381441167662afa00b77c2387b14d44fbea1cad Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 16 Aug 2022 15:26:03 +0300 Subject: [PATCH] Remove unused "q" field --- src/wayland/outputmanagement_v2_interface.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/wayland/outputmanagement_v2_interface.cpp b/src/wayland/outputmanagement_v2_interface.cpp index 35a55238b4..a4bac9d6c9 100644 --- a/src/wayland/outputmanagement_v2_interface.cpp +++ b/src/wayland/outputmanagement_v2_interface.cpp @@ -32,10 +32,7 @@ static const quint32 s_version = 2; class OutputManagementV2InterfacePrivate : public QtWaylandServer::kde_output_management_v2 { public: - OutputManagementV2InterfacePrivate(OutputManagementV2Interface *_q, Display *display); - -private: - OutputManagementV2Interface *q; + OutputManagementV2InterfacePrivate(Display *display); protected: void kde_output_management_v2_create_configuration(Resource *resource, uint32_t id) override; @@ -68,9 +65,8 @@ protected: void kde_output_configuration_v2_set_primary_output(Resource *resource, struct ::wl_resource *output) override; }; -OutputManagementV2InterfacePrivate::OutputManagementV2InterfacePrivate(OutputManagementV2Interface *_q, Display *display) +OutputManagementV2InterfacePrivate::OutputManagementV2InterfacePrivate(Display *display) : QtWaylandServer::kde_output_management_v2(*display, s_version) - , q(_q) { } @@ -86,7 +82,7 @@ void OutputManagementV2InterfacePrivate::kde_output_management_v2_create_configu OutputManagementV2Interface::OutputManagementV2Interface(Display *display, QObject *parent) : QObject(parent) - , d(new OutputManagementV2InterfacePrivate(this, display)) + , d(new OutputManagementV2InterfacePrivate(display)) { }