diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-22 10:01:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-22 11:13:34 +0200 |
commit | ab0f8e61f663acd0bf30469b6abadca078906b64 (patch) | |
tree | 151fd6838a005c8d9e64a7059898a6b99b3112f0 /vcl/opengl | |
parent | 582aa81147557ace37b8ad4aea1bd153eb743c66 (diff) |
pass X11SalGraphics around by std::unique_ptr
Change-Id: Id2fcf829e3ca0edcfcdd3d4daf31188ae5317b27
Reviewed-on: https://gerrit.libreoffice.org/59427
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/x11/salvd.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/opengl/x11/salvd.cxx b/vcl/opengl/x11/salvd.cxx index 9af9f02b5db4..a6ed5602fc3f 100644 --- a/vcl/opengl/x11/salvd.cxx +++ b/vcl/opengl/x11/salvd.cxx @@ -35,8 +35,8 @@ void X11SalGraphics::Init( X11OpenGLSalVirtualDevice *pDevice ) X11OpenGLSalVirtualDevice::X11OpenGLSalVirtualDevice( SalGraphics const * pGraphics, long nDX, long nDY, const SystemGraphicsData *pData, - X11SalGraphics* pNewGraphics) : - mpGraphics(pNewGraphics), + std::unique_ptr<X11SalGraphics> pNewGraphics) : + mpGraphics(std::move(pNewGraphics)), mbGraphics( false ), mnXScreen( 0 ) { |