From 7a09d67e1c76db7cb6a87a2ceaa6de7325342b75 Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 28 Oct 2020 09:15:54 +0200 Subject: convert some more long -> tools::Long Change-Id: Ide9811c1a7582454b3fcf655b70ea106ed56509a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104914 Tested-by: Jenkins Reviewed-by: Noel Grandin --- i18npool/source/localedata/LocaleNode.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'i18npool') diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index da2acce25ba4..93c6b461e77f 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -26,6 +26,8 @@ #include #include +#include +#include #include "LocaleNode.hxx" #include @@ -166,9 +168,9 @@ OUString LocaleNode::writeParameterCheckLen( const OFileWriter &of, { ++nError; fprintf( stderr, - "Error: more than %ld character%s (%ld) in %s '%s' not supported by application.\n", - sal::static_int_cast< long >(nMaxLen), (nMaxLen > 1 ? "s" : ""), - sal::static_int_cast< long >(nLen), + "Error: more than %" SAL_PRIdINT32 " character%s (%" SAL_PRIdINT32 ") in %s '%s' not supported by application.\n", + nMaxLen, (nMaxLen > 1 ? "s" : ""), + nLen, (pNode ? OSTR( pNode->getName()) : ""), OSTR( aVal)); } @@ -1339,8 +1341,8 @@ void LCSearchNode::generateCode (const OFileWriter &of) const { ++nError; fprintf( - stderr, "Error: LC_SEARCH: more than 1 child: %ld\n", - sal::static_int_cast< long >(getNumberOfChildren())); + stderr, "Error: LC_SEARCH: more than 1 child: %" SAL_PRIdINT32 "\n", + getNumberOfChildren()); } sal_Int32 i; LocaleNode* pSearchOptions = getChildAt( 0 ); -- cgit v1.2.3