diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-28 09:15:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-28 12:03:48 +0100 |
commit | 7a09d67e1c76db7cb6a87a2ceaa6de7325342b75 (patch) | |
tree | b768459ca830b343a3c53d1cea8b80de328ee1fb /i18npool/source | |
parent | 49a39d1abccc61b6dace3e92059ae50a6a2c298d (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source')
-rw-r--r-- | i18npool/source/localedata/LocaleNode.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
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 <rtl/ustrbuf.hxx> #include <sal/macros.h> +#include <sal/types.h> +#include <tools/long.hxx> #include "LocaleNode.hxx" #include <i18npool/reservedconstants.hxx> @@ -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 ); |