diff options
-rw-r--r-- | include/svl/zforlist.hxx | 2 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx index f45ec7f0bc0f..87821414325e 100644 --- a/include/svl/zforlist.hxx +++ b/include/svl/zforlist.hxx @@ -602,7 +602,7 @@ public: bool GetNoZero() const; /** Get the type of a format (or css::util::NumberFormat::UNDEFINED if no entry), but with css::util::NumberFormat::DEFINED masked out */ - short GetType(sal_uInt32 nFIndex); + short GetType(sal_uInt32 nFIndex) const; /// As the name says void ClearMergeTable(); diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 8d9152b4d00f..d85fa3f2eb0b 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -3077,11 +3077,11 @@ sal_uInt32 SvNumberFormatter::GetStandardIndex(LanguageType eLnge) return GetStandardFormat(css::util::NumberFormat::NUMBER, eLnge); } -short SvNumberFormatter::GetType(sal_uInt32 nFIndex) +short SvNumberFormatter::GetType(sal_uInt32 nFIndex) const { ::osl::MutexGuard aGuard( GetMutex() ); short eType; - SvNumberformat* pFormat = GetFormatEntry( nFIndex ); + const SvNumberformat* pFormat = GetFormatEntry( nFIndex ); if (!pFormat) { eType = css::util::NumberFormat::UNDEFINED; |