summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-13 17:22:03 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-13 21:41:09 +0100
commit848ed64cd5b63f07d11bf3754c522a731fa7ae88 (patch)
tree9afee9b322722d68ddfddd259f2901250ba0abe0
parent21bd1facb207e5d558854eab3a45a0fb2bb222f7 (diff)
SvNumberFormatter::GetUserDefColor can be const
Change-Id: If499e28e5ac69018b35b475a73ecb2dc4b78dad6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164786 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--include/svl/numformat.hxx2
-rw-r--r--svl/source/numbers/zforlist.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svl/numformat.hxx b/include/svl/numformat.hxx
index bca75cfebef9..e28bd3a1af94 100644
--- a/include/svl/numformat.hxx
+++ b/include/svl/numformat.hxx
@@ -62,7 +62,7 @@ public:
/// Set CallBack to ColorTable
void SetColorLink(const Link<sal_uInt16, Color*>& rColorTableCallBack);
/// Do the CallBack to ColorTable
- Color* GetUserDefColor(sal_uInt16 nIndex);
+ Color* GetUserDefColor(sal_uInt16 nIndex) const;
/// Change language/country, also input and format scanner
void ChangeIntl(LanguageType eLnge);
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index e49fefae070b..c7b5ce164e65 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -375,7 +375,7 @@ void SvNumberFormatter::SetColorLink( const Link<sal_uInt16,Color*>& rColorTable
aColorLink = rColorTableCallBack;
}
-Color* SvNumberFormatter::GetUserDefColor(sal_uInt16 nIndex)
+Color* SvNumberFormatter::GetUserDefColor(sal_uInt16 nIndex) const
{
::osl::MutexGuard aGuard( GetInstanceMutex() );
if( aColorLink.IsSet() )