[Libreoffice-commits] core.git: include/vcl vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 22 07:44:18 UTC 2021
include/vcl/toolkit/svtabbx.hxx | 2 +-
vcl/source/treelist/svtabbx.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0f52706d8f1aef8b48236c60065f6ef0714987c0
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Apr 21 20:14:42 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Apr 22 09:42:11 2021 +0200
pEntry argument can be const
Change-Id: I57357fabbbc2e10a6a82031320e2a65d78383507
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114455
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/include/vcl/toolkit/svtabbx.hxx b/include/vcl/toolkit/svtabbx.hxx
index 480221ce0b09..e85fd85a61f1 100644
--- a/include/vcl/toolkit/svtabbx.hxx
+++ b/include/vcl/toolkit/svtabbx.hxx
@@ -81,7 +81,7 @@ public:
sal_uLong nPos = TREELIST_APPEND, sal_uInt16 nCol = 0xffff, void* pUserData = nullptr );
virtual OUString GetEntryText( SvTreeListEntry* pEntry ) const override;
- static OUString GetEntryText( SvTreeListEntry*, sal_uInt16 nCol );
+ static OUString GetEntryText( const SvTreeListEntry*, sal_uInt16 nCol );
OUString GetEntryText( sal_uLong nPos, sal_uInt16 nCol = 0xffff ) const;
using SvTreeListBox::SetEntryText;
OUString GetCellText( sal_uLong nPos, sal_uInt16 nCol ) const;
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx
index ab1736f32120..c7fd080b68f9 100644
--- a/vcl/source/treelist/svtabbx.cxx
+++ b/vcl/source/treelist/svtabbx.cxx
@@ -291,7 +291,7 @@ OUString SvTabListBox::GetEntryText( SvTreeListEntry* pEntry ) const
return GetEntryText( pEntry, 0xffff );
}
-OUString SvTabListBox::GetEntryText( SvTreeListEntry* pEntry, sal_uInt16 nCol )
+OUString SvTabListBox::GetEntryText( const SvTreeListEntry* pEntry, sal_uInt16 nCol )
{
DBG_ASSERT(pEntry,"GetEntryText:Invalid Entry");
OUStringBuffer aResult;
More information about the Libreoffice-commits
mailing list