diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-26 12:27:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-27 11:42:27 +0200 |
commit | bd28564be85ee51dc08cb2591840e1cb00263e28 (patch) | |
tree | 192a63ee3898075f7fe60738f65ec72421cb441c /vcl/opengl/gdiimpl.cxx | |
parent | 02dc2cafbb0364556a4145633485f3c9f082b43d (diff) |
loplugin:returnconstant in vcl
Change-Id: I597ef6d75d1c21cdc15a91bf7f549bc14c851506
Reviewed-on: https://gerrit.libreoffice.org/58086
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl/gdiimpl.cxx')
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index bad495bdb1b6..d7965883d2d7 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -132,11 +132,9 @@ bool OpenGLSalGraphicsImpl::AcquireContext( bool bForceCreate ) return mpContext.is(); } -bool OpenGLSalGraphicsImpl::ReleaseContext() +void OpenGLSalGraphicsImpl::ReleaseContext() { mpContext.clear(); - - return true; } void OpenGLSalGraphicsImpl::Init() @@ -1738,10 +1736,7 @@ std::shared_ptr<SalBitmap> OpenGLSalGraphicsImpl::getBitmap( long nX, long nY, l " " << nWidth << "x" << nHeight ); //TODO really needed? PreDraw(); - if( !pBitmap->Create( maOffscreenTex, nX, nY, nWidth, nHeight ) ) - { - pBitmap = nullptr; - } + pBitmap->Create( maOffscreenTex, nX, nY, nWidth, nHeight ); PostDraw(); return pBitmap; } |