diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-09-22 14:33:19 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-09-25 15:15:30 +0200 |
commit | f2efde611c5a682a0084177e87454df188fe7df8 (patch) | |
tree | 2d1d3e25f489f4bbcbd898aa1b7f271ed43e399c /vcl | |
parent | 974d65aed528783bb06b96e5400b5ab347e0b258 (diff) |
vcl: [loplugin:badstatics] X11OpenGLDeviceInfo
class X11OpenGLDeviceInfo actually looks harmless but it has an out-of-line
destructor so the plugin can't see that it's harmless, so use
default destructor instead.
Change-Id: I50de6916360a944cbda3a85f4062e72e4c6d3768
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/opengl/DeviceInfo.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/opengl/x11/X11DeviceInfo.hxx | 1 | ||||
-rw-r--r-- | vcl/opengl/x11/X11DeviceInfo.cxx | 4 |
3 files changed, 1 insertions, 6 deletions
diff --git a/vcl/inc/opengl/DeviceInfo.hxx b/vcl/inc/opengl/DeviceInfo.hxx index 402a3d02e8d7..b0ad3a6cfec6 100644 --- a/vcl/inc/opengl/DeviceInfo.hxx +++ b/vcl/inc/opengl/DeviceInfo.hxx @@ -13,7 +13,7 @@ class OpenGLDeviceInfo { public: - virtual ~OpenGLDeviceInfo(); + virtual ~OpenGLDeviceInfo() = 0; virtual bool isDeviceBlocked() = 0; }; diff --git a/vcl/inc/opengl/x11/X11DeviceInfo.hxx b/vcl/inc/opengl/x11/X11DeviceInfo.hxx index 58cb0c1bf4d9..fdc5102107ec 100644 --- a/vcl/inc/opengl/x11/X11DeviceInfo.hxx +++ b/vcl/inc/opengl/x11/X11DeviceInfo.hxx @@ -40,7 +40,6 @@ private: public: X11OpenGLDeviceInfo(); - virtual ~X11OpenGLDeviceInfo() override; virtual bool isDeviceBlocked() override; diff --git a/vcl/opengl/x11/X11DeviceInfo.cxx b/vcl/opengl/x11/X11DeviceInfo.cxx index 8b15809ea107..c270adf08d32 100644 --- a/vcl/opengl/x11/X11DeviceInfo.cxx +++ b/vcl/opengl/x11/X11DeviceInfo.cxx @@ -117,10 +117,6 @@ X11OpenGLDeviceInfo::X11OpenGLDeviceInfo(): GetData(); } -X11OpenGLDeviceInfo::~X11OpenGLDeviceInfo() -{ -} - void X11OpenGLDeviceInfo::GetData() { if (!glx::glxtest_pipe) |