summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-26 17:21:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-27 10:01:29 +0100
commit9b784a74a2f09e9eb9a0fd41d58c1f6b47ee6ee6 (patch)
tree9debd4cb16ca9aaece751a88bd09a63b01ccc00c /include
parent52a06aeb4d8b58245fa0363fe22c7f255bcfc310 (diff)
these methods can take a const argument
Change-Id: I0ec68d40dcc34075c72c0d60d3a4b6e8262a8e0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91152 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/treelistbox.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx
index 915730390f7a..ad68a900abb2 100644
--- a/include/vcl/treelistbox.hxx
+++ b/include/vcl/treelistbox.hxx
@@ -485,7 +485,7 @@ public:
@param pEntry
The entry.
@return The bounding rectangle of an entry. */
- tools::Rectangle GetBoundingRect( SvTreeListEntry* pEntry );
+ tools::Rectangle GetBoundingRect(const SvTreeListEntry* pEntry);
SvTreeFlags GetTreeFlags() const {return nTreeFlags;}
@@ -650,7 +650,7 @@ public:
// Place the expander checkitem at the optimal indent for hierarchical lists
void SetOptimalImageIndent() { SetIndent(12); }
void SetSpaceBetweenEntries( short nSpace );
- Point GetEntryPosition( SvTreeListEntry* ) const;
+ Point GetEntryPosition(const SvTreeListEntry*) const;
void MakeVisible( SvTreeListEntry* pEntry );
void MakeVisible( SvTreeListEntry* pEntry, bool bMoveToTop );
@@ -665,9 +665,9 @@ public:
SvTreeListEntry* GetEntry( const Point& rPos, bool bHit = false ) const;
- virtual tools::Rectangle GetFocusRect( SvTreeListEntry*, long nLine );
+ virtual tools::Rectangle GetFocusRect(const SvTreeListEntry*, long nLine );
// Respects indentation
- virtual sal_IntPtr GetTabPos( SvTreeListEntry*, SvLBoxTab* );
+ virtual sal_IntPtr GetTabPos(const SvTreeListEntry*, SvLBoxTab*);
void InvalidateEntry( SvTreeListEntry* );
SvLBoxItem* GetItem( SvTreeListEntry*, long nX, SvLBoxTab** ppTab);
SvLBoxItem* GetItem( SvTreeListEntry*, long nX );