summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-07-19 15:30:49 +0000
committerKurt Zenker <kz@openoffice.org>2006-07-19 15:30:49 +0000
commit5fd58282e291186a423503c9df9cffe4d7146bd4 (patch)
tree10ebcb41f5371142eb29a676fc8a8bddb48bcb62 /i18npool
parent52b4a2ee1069764953931a38cbe6280d01346540 (diff)
INTEGRATION: CWS warningfixes02 (1.23.2); FILE MERGED
2006/06/30 11:57:37 sb 1.23.2.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box.
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx18
1 files changed, 11 insertions, 7 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index ac347178e731..03b7164988ac 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: LocaleNode.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: hr $ $Date: 2006-06-20 04:47:00 $
+ * last change: $Author: kz $ $Date: 2006-07-19 16:30:49 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -269,15 +269,17 @@ void LocaleNode :: generateCode (const OFileWriter &of) const
if (nLen < nMinLen)
{
++nError;
- fprintf( stderr, "Error: less than %d character%s (%d) in %s '%s'.\n",
- nMinLen, (nMinLen > 1 ? "s" : ""), nLen,
+ fprintf( stderr, "Error: less than %ld character%s (%ld) in %s '%s'.\n",
+ sal::static_int_cast< long >(nMinLen), (nMinLen > 1 ? "s" : ""),
+ sal::static_int_cast< long >(nLen),
(pNode ? OUStringToOString( pNode->getName(), RTL_TEXTENCODING_UTF8).getStr() : ""),
OUStringToOString( aVal, RTL_TEXTENCODING_UTF8).getStr());
}
else if (nLen > nMaxLen && nMaxLen >= 0)
fprintf( stderr,
- "Warning: more than %d character%s (%d) in %s %s not supported by application.\n",
- nMaxLen, (nMaxLen > 1 ? "s" : ""), nLen,
+ "Warning: 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),
(pNode ? OUStringToOString( pNode->getName(), RTL_TEXTENCODING_UTF8).getStr() : ""),
OUStringToOString( aVal, RTL_TEXTENCODING_UTF8).getStr());
return aVal;
@@ -789,7 +791,9 @@ void LCSearchNode::generateCode (const OFileWriter &of) const
if( getNumberOfChildren() != 1 )
{
++nError;
- fprintf( stderr, "Error: LC_SEARCH: more than 1 child: %d\n", getNumberOfChildren());
+ fprintf(
+ stderr, "Error: LC_SEARCH: more than 1 child: %ld\n",
+ sal::static_int_cast< long >(getNumberOfChildren()));
}
sal_Int32 i;
LocaleNode* pSearchOptions = getChildAt( 0 );