diff options
author | Christophe Chapuis <chris.chapuis@gmail.com> | 2019-03-16 11:41:42 +0000 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2019-04-03 07:38:40 +0000 |
commit | d65783c9e1f40e176943b8706bf6bbed8320bcc8 (patch) | |
tree | e32fd81833020809501c80414debf21dc2060640 /src/compositor/extensions/qwaylandshell.h | |
parent | f602191778cce57a67fdeffe5f3cc0e1cd2c7b53 (diff) | |
download | qtwayland-d65783c9e1f40e176943b8706bf6bbed8320bcc8.tar.gz |
compositor: fix QWaylandShell private objects inheritance
If the public API has inheritance relationships, this should be
reflected in the private classes too.
Otherwise the d_func will cast to a wrong type, leading to crashes.
Change-Id: Iad2dccad4b63326e6b108a44c708ab51f0784678
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandshell.h')
-rw-r--r-- | src/compositor/extensions/qwaylandshell.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/extensions/qwaylandshell.h b/src/compositor/extensions/qwaylandshell.h index a8693821..9241b866 100644 --- a/src/compositor/extensions/qwaylandshell.h +++ b/src/compositor/extensions/qwaylandshell.h @@ -96,11 +96,11 @@ public: } protected: - QWaylandShellTemplate(QWaylandCompositorExtensionPrivate &dd) + QWaylandShellTemplate(QWaylandShellPrivate &dd) : QWaylandShell(dd) { } - QWaylandShellTemplate(QWaylandObject *container, QWaylandCompositorExtensionPrivate &dd) + QWaylandShellTemplate(QWaylandObject *container, QWaylandShellPrivate &dd) : QWaylandShell(container,dd) { } }; |