summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-08-07 18:29:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-08-07 18:29:15 +0200
commitabdae7c281f6449833c920c5a9ba22459be484bd (patch)
treeb442b151d063ae7976b4ea2f3a410f52cfa82d85 /i18npool
parentbcc719d52e6c470c3bb66548418230b48336e888 (diff)
Fix function types
Change-Id: I295f587e48e2882f87091a3a86610e316cd903fb
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/localedata/filewriter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/localedata/filewriter.cxx b/i18npool/source/localedata/filewriter.cxx
index 0a83b42072f5..19b2558a7ec0 100644
--- a/i18npool/source/localedata/filewriter.cxx
+++ b/i18npool/source/localedata/filewriter.cxx
@@ -73,7 +73,7 @@ void OFileWriter::writeRefFunction(const char *func, const OUString& useLocale)
void OFileWriter::writeFunction(const char *func, const char *count, const char *array, const char *from, const char *to) const
{
- fprintf(m_f, "sal_Unicode ** SAL_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)\n{\n", func, theLocale);
+ fprintf(m_f, "sal_Unicode const * const * SAL_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)\n{\n", func, theLocale);
fprintf(m_f, "\tcount = %s;\n", count);
fprintf(m_f, "\tfrom = %s;\n", from);
fprintf(m_f, "\tto = %s;\n", to);
@@ -84,8 +84,8 @@ void OFileWriter::writeRefFunction(const char *func, const OUString& useLocale,
{
OString aRefLocale( OUStringToOString(useLocale, RTL_TEXTENCODING_ASCII_US) );
const char* locale = aRefLocale.getStr();
- fprintf(m_f, "extern sal_Unicode ** SAL_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to);\n", func, locale);
- fprintf(m_f, "sal_Unicode ** SAL_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)\n{\n", func, theLocale);
+ fprintf(m_f, "extern sal_Unicode const * const * SAL_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to);\n", func, locale);
+ fprintf(m_f, "sal_Unicode const * const * SAL_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)\n{\n", func, theLocale);
fprintf(m_f, "\tto = %s;\n", to);
fprintf(m_f, "\tconst sal_Unicode* tmp;\n");
fprintf(m_f, "\treturn %s%s(count, from, tmp);\n}\n", func, locale);