diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-06 08:26:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-06 09:49:27 +0100 |
commit | de05d4ee53b5ff0e7404058cef6d3a311e6b35e4 (patch) | |
tree | 853ea96ecdb10bc88350573041bcbf7c32c4e88d | |
parent | 0a4ad544daaec4f773480e6301238c7f6958a9ab (diff) |
convert GetNumStr from sal_uLong->sal_Int32
the code was truncating the param to sal_Int32 anyway
Change-Id: I743b60097df937c16c995e2e6deacc12cf12e5e9
Reviewed-on: https://gerrit.libreoffice.org/44341
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | editeng/source/items/numitem.cxx | 6 | ||||
-rw-r--r-- | include/editeng/numitem.hxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx index 24a612f93d4c..6e0d175f029d 100644 --- a/editeng/source/items/numitem.cxx +++ b/editeng/source/items/numitem.cxx @@ -98,7 +98,7 @@ SvxNumberType::~SvxNumberType() xFormatter = nullptr; } -OUString SvxNumberType::GetNumStr( sal_uLong nNo ) const +OUString SvxNumberType::GetNumStr( sal_Int32 nNo ) const { LanguageTag aLang = utl::ConfigManager::IsAvoidConfig() ? LanguageTag("en-US") : @@ -106,7 +106,7 @@ OUString SvxNumberType::GetNumStr( sal_uLong nNo ) const return GetNumStr( nNo, aLang.getLocale() ); } -OUString SvxNumberType::GetNumStr( sal_uLong nNo, const css::lang::Locale& rLocale ) const +OUString SvxNumberType::GetNumStr( sal_Int32 nNo, const css::lang::Locale& rLocale ) const { lcl_getFormatter(xFormatter); if(!xFormatter.is()) @@ -131,7 +131,7 @@ OUString SvxNumberType::GetNumStr( sal_uLong nNo, const css::lang::Locale& rLoca pValues[0].Name = "NumberingType"; pValues[0].Value <<= (sal_uInt16)nNumType; pValues[1].Name = "Value"; - pValues[1].Value <<= (sal_Int32)nNo; + pValues[1].Value <<= nNo; try { diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx index c898e3dc8045..177a360d8b41 100644 --- a/include/editeng/numitem.hxx +++ b/include/editeng/numitem.hxx @@ -66,8 +66,8 @@ public: SvxNumberType(const SvxNumberType& rType); ~SvxNumberType(); - OUString GetNumStr( sal_uLong nNo ) const; - OUString GetNumStr( sal_uLong nNo, const css::lang::Locale& rLocale ) const; + OUString GetNumStr( sal_Int32 nNo ) const; + OUString GetNumStr( sal_Int32 nNo, const css::lang::Locale& rLocale ) const; void SetNumberingType(SvxNumType nSet) {nNumType = nSet;} SvxNumType GetNumberingType() const {return nNumType;} |