diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-16 15:23:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-17 08:25:47 +0200 |
commit | ccb2a1f650bc505f8a4f1abebf8ce4f9396562a8 (patch) | |
tree | 2ee2fd4f300ae95cf23bade1f242e02f9b276c07 /vcl/opengl | |
parent | da5c3a1ee43dd1a07cbd1b8005488bf05432593d (diff) |
clang-tidy readability-redundant-smartptr-get
redundant get() call on smart pointer
Change-Id: Icb5a03bbc15e79a30d3d135a507d22914d15c2bd
Reviewed-on: https://gerrit.libreoffice.org/61837
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/PackedTextureAtlas.cxx | 6 | ||||
-rw-r--r-- | vcl/opengl/salbmp.cxx | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/vcl/opengl/PackedTextureAtlas.cxx b/vcl/opengl/PackedTextureAtlas.cxx index 98cffcd78b37..0e3bdc5f1d5c 100644 --- a/vcl/opengl/PackedTextureAtlas.cxx +++ b/vcl/opengl/PackedTextureAtlas.cxx @@ -46,11 +46,7 @@ Node::Node(tools::Rectangle const & aRectangle) , mOccupied(false) {} -bool Node::isLeaf() -{ - return mLeftNode.get() == nullptr && - mRightNode.get() == nullptr; -} +bool Node::isLeaf() { return mLeftNode == nullptr && mRightNode == nullptr; } Node* Node::insert(int nWidth, int nHeight, int nPadding) { diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index 5c35e8e41265..8a07f5ceb4a5 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -302,7 +302,7 @@ bool OpenGLSalBitmap::AllocateUserData() } #endif - return mpUserBuffer.get() != nullptr; + return mpUserBuffer != nullptr; } namespace { @@ -486,7 +486,7 @@ GLuint OpenGLSalBitmap::CreateTexture() sal_uInt8* pData( nullptr ); bool bAllocated( false ); - if (mpUserBuffer.get() != nullptr) + if (mpUserBuffer != nullptr) { if( mnBits == 16 || mnBits == 24 || mnBits == 32 ) { |