summaryrefslogtreecommitdiff
path: root/i18npool/source/defaultnumberingprovider
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-30 15:28:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-30 15:28:17 +0200
commit82b27577d20025bc8e9b68bfe365a860992be0cb (patch)
tree49dd7ac2190f3f5e8bb7c3c4c4bfb640f8a7d2e4 /i18npool/source/defaultnumberingprovider
parent1a212efd3a3ef0d87abae0299c2da2fc5249492c (diff)
loplugin:stringconstant: adapt to improved OUStringLiteral1 (i18npool)
Change-Id: If4bc7dd5af49cca85f474e817cc3cc358c2b48c2
Diffstat (limited to 'i18npool/source/defaultnumberingprovider')
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
index 61097457362b..fe5bf48a6a16 100644
--- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
+++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
@@ -343,7 +343,7 @@ void lcl_formatChars( const sal_Unicode table[], int tableSize, int n, OUString&
if( n>=tableSize ) lcl_formatChars( table, tableSize, (n-tableSize)/tableSize, s );
- s += OUString( table[ n % tableSize ] );
+ s += OUStringLiteral1( table[ n % tableSize ] );
}
static
@@ -356,7 +356,7 @@ void lcl_formatChars1( const sal_Unicode table[], int tableSize, int n, OUString
int repeat_count = n / tableSize + 1;
for( int i=0; i<repeat_count; i++ )
- s += OUString( table[ n%tableSize ] );
+ s += OUStringLiteral1( table[ n%tableSize ] );
}
static
@@ -368,9 +368,9 @@ void lcl_formatChars2( const sal_Unicode table_capital[], const sal_Unicode tabl
if( n>=tableSize )
{
lcl_formatChars2( table_capital, table_small, tableSize, (n-tableSize)/tableSize, s );
- s += OUString( table_small[ n % tableSize ] );
+ s += OUStringLiteral1( table_small[ n % tableSize ] );
} else
- s += OUString( table_capital[ n % tableSize ] );
+ s += OUStringLiteral1( table_capital[ n % tableSize ] );
}
static
@@ -380,10 +380,10 @@ void lcl_formatChars3( const sal_Unicode table_capital[], const sal_Unicode tabl
// if A=='A' then 0=>A, 1=>B, ..., 25=>Z, 26=>Aa, 27=>Bb, ...
int repeat_count = n / tableSize + 1;
- s += OUString( table_capital[ n%tableSize ] );
+ s += OUStringLiteral1( table_capital[ n%tableSize ] );
for( int i=1; i<repeat_count; i++ )
- s += OUString( table_small[ n%tableSize ] );
+ s += OUStringLiteral1( table_small[ n%tableSize ] );
}