summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-06 08:26:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-06 09:49:27 +0100
commitde05d4ee53b5ff0e7404058cef6d3a311e6b35e4 (patch)
tree853ea96ecdb10bc88350573041bcbf7c32c4e88d /editeng
parent0a4ad544daaec4f773480e6301238c7f6958a9ab (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>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/numitem.cxx6
1 files changed, 3 insertions, 3 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
{