summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-22 23:40:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-23 10:10:09 +0000
commitb7ea36101497c275cb08b0e37facbde656197d9b (patch)
treea05e25d4f01c94c69712d17a1ab4cdbc925ef355 /cui
parent62d880f3228c7f5c3f8a1d30f5a5c9ed390a1eb5 (diff)
add stripStart, can replace EraseTrailingChars
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optdict.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index 6c91c3e3852b..0dd607380983 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -65,10 +65,9 @@ static long nStaticTabs[]=
// static function -------------------------------------------------------
-static String getNormDicEntry_Impl( const String &rText )
+static String getNormDicEntry_Impl(const rtl::OUString &rText)
{
- String aTmp( rText );
- aTmp.EraseTrailingChars( '.' );
+ rtl::OUString aTmp(comphelper::string::stripEnd(rText, '.'));
return comphelper::string::remove(aTmp, '=');
}