From 01645645a757da8098d43d6f3cbf429085da72d9 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 21 Oct 2021 23:44:11 +0200 Subject: [PATCH] outputconfiguration: No need to cast, q already is the right type --- src/wayland/outputconfiguration_v2_interface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wayland/outputconfiguration_v2_interface.cpp b/src/wayland/outputconfiguration_v2_interface.cpp index 96a7cb04ed..4cb24d1bd3 100644 --- a/src/wayland/outputconfiguration_v2_interface.cpp +++ b/src/wayland/outputconfiguration_v2_interface.cpp @@ -168,8 +168,7 @@ void OutputConfigurationV2InterfacePrivate::kde_output_configuration_v2_destroy_ void OutputConfigurationV2InterfacePrivate::emitConfigurationChangeRequested() const { - auto configinterface = reinterpret_cast(q); - Q_EMIT outputManagement->configurationChangeRequested(configinterface); + Q_EMIT outputManagement->configurationChangeRequested(q); } OutputConfigurationV2InterfacePrivate::OutputConfigurationV2InterfacePrivate(OutputConfigurationV2Interface *q, OutputManagementV2Interface *outputManagement, wl_resource *resource)