summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-07 14:55:49 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-08 17:06:05 +0000
commit60f16cae918adc96e5b01e8599b14a34b97902ef (patch)
tree7b56105971686607555ec8c3d5d15e9757466332
parent83f0f6f0a46a74e9ae476db88dceafa173a562fb (diff)
Quiet -Wmismatched-tag warningv5.13.0-alpha1
Change CompositorResource to class to match forward declaration. Change-Id: I603038b99e567a8da2096e48b5b33ec8874594ad Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
-rw-r--r--src/core/compositor/compositor_resource.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/compositor/compositor_resource.h b/src/core/compositor/compositor_resource.h
index c40ce3d5..f7df2ab5 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