QWaylandShellIntegration: pin vtable to a single TU
Fixes -Wweak-vtables, at least on the base class; the implementation is a template, so can't be fixed. Pick-to: 6.9 Change-Id: Ic697614995042e3e0cf130bbaf1bc21a891b497b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
9bb48c315c
commit
8fb0ceeb95
@ -8,6 +8,9 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QtWaylandClient {
|
||||
|
||||
QWaylandShellIntegration::~QWaylandShellIntegration()
|
||||
= default; // MUST stay empty until Qt 7 (was inline in Qt < 6.9)
|
||||
|
||||
wl_surface *QWaylandShellIntegration::wlSurfaceForWindow(QWaylandWindow *window)
|
||||
{
|
||||
return window->wlSurface();
|
||||
|
@ -40,7 +40,7 @@ class Q_WAYLANDCLIENT_EXPORT QWaylandShellIntegration
|
||||
{
|
||||
public:
|
||||
QWaylandShellIntegration() {}
|
||||
virtual ~QWaylandShellIntegration() {}
|
||||
virtual ~QWaylandShellIntegration();
|
||||
|
||||
virtual bool initialize(QWaylandDisplay *display) = 0;
|
||||
virtual QWaylandShellSurface *createShellSurface(QWaylandWindow *window) = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user