summaryrefslogtreecommitdiff
path: root/i18nutil
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-21 13:12:42 +0200
committerNoel Grandin <noel@peralex.com>2015-08-21 15:02:41 +0200
commit0ab1e76a29bbd667a208d63e3b6fe207d32d8374 (patch)
tree14bdec6929b8f47b79b43f32d18a0966b5538bf2 /i18nutil
parent123ee9606938abc2be03ab7d35b66544141ade64 (diff)
loplugin:defaultparams
Change-Id: Iaf6415d3b33a4ce195a00913a0df69f1fb794217
Diffstat (limited to 'i18nutil')
-rw-r--r--i18nutil/source/utility/unicode.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx
index cecc7d989df6..440f4aa0ff3e 100644
--- a/i18nutil/source/utility/unicode.cxx
+++ b/i18nutil/source/utility/unicode.cxx
@@ -1194,7 +1194,7 @@ OUString ToggleUnicodeCodepoint::StringToReplace()
nUnicode = sIn.toString().toUInt32(16);
if( !nUnicode || nUnicode > 0x10ffff )
- maInput.truncate(0).append( sIn[sIn.getLength()-1] );
+ maInput.truncate().append( sIn[sIn.getLength()-1] );
return maInput.toString();
}
@@ -1205,7 +1205,7 @@ sal_uInt32 ToggleUnicodeCodepoint::CharsToDelete()
sal_uInt32 counter = 0;
while( nPos < sIn.getLength() )
{
- sIn.iterateCodePoints(&nPos,1);
+ sIn.iterateCodePoints(&nPos);
++counter;
}
return counter;
@@ -1243,7 +1243,7 @@ OUString ToggleUnicodeCodepoint::ReplacementString()
while( nPos < sIn.getLength() )
{
maOutput.append( "U+" );
- maOutput.append( OUString::number(sIn.iterateCodePoints(&nPos,1),16) );
+ maOutput.append( OUString::number(sIn.iterateCodePoints(&nPos),16) );
}
}
return maOutput.toString();