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.
This commit is contained in:
Vlad Zahorodnii 2021-03-22 19:40:04 +02:00
parent e4b9f9761f
commit d4901d16fa

View file

@ -239,7 +239,7 @@ void XdgImportedV2Interface::zxdg_imported_v2_destroy_resource(Resource *resourc
void XdgImportedV2Interface::handleExportedDestroyed()
{
send_destroyed(resource()->handle);
send_destroyed();
delete this;
}