summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-11 09:48:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-13 06:49:23 +0000
commite8b49f09074fe184374bee5062715357427ae044 (patch)
treeb9cf1f5e3d7ab8b98345a512b6ddb0da42fe2919 /vcl/opengl
parent5e0e27e758e6f7fa325f36e6e51540e10bab0fdc (diff)
new loplugin: useuniqueptr: vcl
Change-Id: Idcbc8655108ff57c06c33bbcabd652387bf3c4ec Reviewed-on: https://gerrit.libreoffice.org/32948 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/x11/salvd.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/opengl/x11/salvd.cxx b/vcl/opengl/x11/salvd.cxx
index ff0a2c3332e6..17edbf6cce22 100644
--- a/vcl/opengl/x11/salvd.cxx
+++ b/vcl/opengl/x11/salvd.cxx
@@ -69,7 +69,6 @@ X11OpenGLSalVirtualDevice::X11OpenGLSalVirtualDevice( SalGraphics* pGraphics,
X11OpenGLSalVirtualDevice::~X11OpenGLSalVirtualDevice()
{
- delete mpGraphics;
}
SalGraphics* X11OpenGLSalVirtualDevice::AcquireGraphics()
@@ -80,7 +79,7 @@ SalGraphics* X11OpenGLSalVirtualDevice::AcquireGraphics()
if( mpGraphics )
mbGraphics = true;
- return mpGraphics;
+ return mpGraphics.get();
}
void X11OpenGLSalVirtualDevice::ReleaseGraphics( SalGraphics* )