From d4901d16faabba2a3db24243fe4ff61df844276e Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 22 Mar 2021 19:40:04 +0200 Subject: [PATCH] Call XdgImportedV2Interface::send_destroyed() that takes no resource XdgImportedV2Interface already knows what the associated resource is, so we can call send_destroyed() method that takes no resource to let auto generated code figure out what resource must be used. It simplifies code. --- src/wayland/xdgforeign_v2_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/xdgforeign_v2_interface.cpp b/src/wayland/xdgforeign_v2_interface.cpp index 7054758bc2..eef5b4674b 100644 --- a/src/wayland/xdgforeign_v2_interface.cpp +++ b/src/wayland/xdgforeign_v2_interface.cpp @@ -239,7 +239,7 @@ void XdgImportedV2Interface::zxdg_imported_v2_destroy_resource(Resource *resourc void XdgImportedV2Interface::handleExportedDestroyed() { - send_destroyed(resource()->handle); + send_destroyed(); delete this; }