include/svl/zforlist.hxx | 2 +- svl/source/numbers/zforlist.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit bbbf15993c48fffcf99e62d4876910e18b633762 Author: Eike Rathke <[email protected]> Date: Fri Dec 8 23:48:20 2017 +0100 SvNumberFormatter::GetType() const Change-Id: Id5392ec8996d157ac1be21cb24f0ab7fff18df27 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; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
