summaryrefslogtreecommitdiff
path: root/vcl/opengl/PackedTextureAtlas.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/opengl/PackedTextureAtlas.cxx')
-rw-r--r--vcl/opengl/PackedTextureAtlas.cxx4
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)
{