From 60f16cae918adc96e5b01e8599b14a34b97902ef Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 7 Feb 2019 14:55:49 +0100 Subject: Quiet -Wmismatched-tag warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change CompositorResource to class to match forward declaration. Change-Id: I603038b99e567a8da2096e48b5b33ec8874594ad Reviewed-by: Jüri Valdmann --- src/core/compositor/compositor_resource.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/compositor/compositor_resource.h b/src/core/compositor/compositor_resource.h index c40ce3d5e..f7df2ab59 100644 --- a/src/core/compositor/compositor_resource.h +++ b/src/core/compositor/compositor_resource.h @@ -71,8 +71,9 @@ using CompositorResourceId = quint32; // // - A committed resource's fields may not be updated and are safe to use from // other threads without synchronization (unless noted otherwise). -struct CompositorResource : viz::TransferableResource +class CompositorResource : public viz::TransferableResource { +public: CompositorResource(const viz::TransferableResource &tr) : viz::TransferableResource(tr) {} // Counts the number of times this resource has been encountered in -- cgit v1.2.3