summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 16:04:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-25 17:19:36 +0200
commita006f60b6ae22db6acb57d06167a3c6fd8bc6f1b (patch)
tree707809080a1fbb95c101de7afe3233f85f0f7bcb /i18npool
parentd116894b26f538793a0d5dc5847efd2fb53e7acb (diff)
loplugin:oncevar in helpcompiler..jvmfwk
Change-Id: Ia9b20a8ca95684cbeb21e3425972c43ba50df3cd Reviewed-on: https://gerrit.libreoffice.org/39187 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/qa/cppunit/test_breakiterator.cxx2
-rw-r--r--i18npool/qa/cppunit/test_textsearch.cxx6
-rw-r--r--i18npool/source/calendar/calendar_hijri.cxx8
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx8
4 files changed, 12 insertions, 12 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx
index e18efe843029..8c5b377b3bd9 100644
--- a/i18npool/qa/cppunit/test_breakiterator.cxx
+++ b/i18npool/qa/cppunit/test_breakiterator.cxx
@@ -115,7 +115,7 @@ void TestBreakIterator::testLineBreaking()
//See https://bz.apache.org/ooo/show_bug.cgi?id=17155
{
- OUString aTest("foo /bar/baz");
+ OUString const aTest("foo /bar/baz");
aLocale.Language = "en";
aLocale.Country = "US";
diff --git a/i18npool/qa/cppunit/test_textsearch.cxx b/i18npool/qa/cppunit/test_textsearch.cxx
index 303af41db72e..be366aa71fdc 100644
--- a/i18npool/qa/cppunit/test_textsearch.cxx
+++ b/i18npool/qa/cppunit/test_textsearch.cxx
@@ -103,9 +103,9 @@ void TestTextSearch::testSearches()
{
OUString str( "acababaabcababadcdaa" );
sal_Int32 startPos = 2, endPos = 20 ;
- OUString searchStr( "(ab)*a(c|d)+" );
- sal_Int32 fStartRes = 10, fEndRes = 18 ;
- sal_Int32 bStartRes = 18, bEndRes = 10 ;
+ OUString const searchStr( "(ab)*a(c|d)+" );
+ sal_Int32 const fStartRes = 10, fEndRes = 18 ;
+ sal_Int32 const bStartRes = 18, bEndRes = 10 ;
// set options
util::SearchOptions aOptions;
diff --git a/i18npool/source/calendar/calendar_hijri.cxx b/i18npool/source/calendar/calendar_hijri.cxx
index 11046f8e9cbf..eeabf6d47472 100644
--- a/i18npool/source/calendar/calendar_hijri.cxx
+++ b/i18npool/source/calendar/calendar_hijri.cxx
@@ -316,12 +316,12 @@ Calendar_hijri::getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year)
sal_Int32 intgr = (sal_Int32)((sal_Int32)(365.25 * jy) + (sal_Int32)(30.6001 * jm) + day + 1720995 );
//check for switch to Gregorian calendar
- double gregcal = 15 + 31 * ( 10 + 12 * 1582 );
+ double const gregcal = 15 + 31 * ( 10 + 12 * 1582 );
if( day + 31 * (month + 12 * year) >= gregcal ) {
- double ja;
- ja = (sal_Int32)(0.01 * jy);
- intgr += (sal_Int32)(2 - ja + (sal_Int32)(0.25 * ja));
+ double ja;
+ ja = (sal_Int32)(0.01 * jy);
+ intgr += (sal_Int32)(2 - ja + (sal_Int32)(0.25 * ja));
}
return (double) intgr;
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index 0fba9c6f5d99..c1c5aaa81e32 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -798,10 +798,10 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
if (strcmp( of.getLocale(), "en_US") != 0)
{
OUString aCode( n->getValue());
- OUString aPar1( "0)");
- OUString aPar2( "-)" );
- OUString aPar3( " )" );
- OUString aPar4( "])" );
+ 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)
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);