From f814591155d80489973ae0da05fddeadc8cc27aa Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 19 Oct 2020 14:41:01 +0200 Subject: Address WlCompositor::compositor_create_region in tests It was not properly marked as override and would not get called. Pick-to: 5.15 Change-Id: Ib80c916c65534ddff918ac06bbe52d88e19d9ff4 Reviewed-by: David Edmundson --- tests/auto/client/shared/coreprotocol.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/auto/client/shared/coreprotocol.h b/tests/auto/client/shared/coreprotocol.h index 45f93ec5..17eeca27 100644 --- a/tests/auto/client/shared/coreprotocol.h +++ b/tests/auto/client/shared/coreprotocol.h @@ -178,10 +178,9 @@ protected: emit surfaceCreated(surface); } - static void compositor_create_region(wl_client *client, wl_resource *compositorResource, - uint32_t id) + void compositor_create_region(Resource *resource, uint32_t id) override { - new Region(client, id, wl_resource_get_version(compositorResource)); + new Region(resource->client(), id, resource->version()); } }; -- cgit v1.2.1