diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-22 10:02:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-22 11:04:05 +0200 |
commit | 3be72fe233b3e6d7aeb267f6c82d8bf9759b39ef (patch) | |
tree | a8304c473bac0da12a6b5d35f7841cd61a13b01c /vcl/opengl | |
parent | b5c5cccabe68dc2de84cee4ef041f52268e5b8b4 (diff) |
loplugin:constmethod in vcl
Change-Id: I20545527b117c9562b91076b748fb3e2659d2497
Reviewed-on: https://gerrit.libreoffice.org/77944
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/PackedTextureAtlas.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/opengl/PackedTextureAtlas.cxx b/vcl/opengl/PackedTextureAtlas.cxx index 0e3bdc5f1d5c..dd9310103e35 100644 --- a/vcl/opengl/PackedTextureAtlas.cxx +++ b/vcl/opengl/PackedTextureAtlas.cxx @@ -28,7 +28,7 @@ struct Node explicit Node(int nWidth, int nHeight); explicit Node(tools::Rectangle const & aRectangle); - bool isLeaf(); + bool isLeaf() const; Node* insert(int nWidth, int nHeight, int nPadding); }; @@ -46,7 +46,7 @@ Node::Node(tools::Rectangle const & aRectangle) , mOccupied(false) {} -bool Node::isLeaf() { return mLeftNode == nullptr && mRightNode == nullptr; } +bool Node::isLeaf() const { return mLeftNode == nullptr && mRightNode == nullptr; } Node* Node::insert(int nWidth, int nHeight, int nPadding) { |