diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-04 09:11:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-04 14:33:50 +0200 |
commit | 3d20df43c450889ec0a8f61ea12df7338eb1ff97 (patch) | |
tree | d7cc7342ef284f4db8ae46a598f51800f5ea2ea3 /i18npool/source | |
parent | 8d41357570ad2671b0053c462e33b1d78626dca0 (diff) |
Upcoming loplugin:elidestringvar: i18npool
Change-Id: I5644ca7f2ef1b251ce1c262d3001ca48f2ed9edd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95482
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool/source')
-rw-r--r-- | i18npool/source/localedata/LocaleNode.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index ddc8cf46dfd1..3760ac753e06 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -711,12 +711,8 @@ void LCFormatNode::generateCode (const OFileWriter &of) const if (strcmp( of.getLocale(), "en_US") != 0) { const OUString& aCode( n->getValue()); - OUString const aPar1( "0)"); - OUString const aPar2( "-)" ); - OUString const aPar3( " )" ); - OUString const aPar4( "])" ); - if (aCode.indexOf( aPar1 ) > 0 || aCode.indexOf( aPar2 ) > 0 || - aCode.indexOf( aPar3 ) > 0 || aCode.indexOf( aPar4 ) > 0) + if (aCode.indexOf( "0)" ) > 0 || aCode.indexOf( "-)" ) > 0 || + aCode.indexOf( " )" ) > 0 || aCode.indexOf( "])" ) > 0) fprintf( stderr, "Warning: FormatCode formatindex=\"%d\" for currency uses parentheses for negative amounts, which probably is not correct for locales not based on en_US.\n", formatindex); } // Check if we have replaceTo for "[CURRENCY]" placeholder. |