summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/optdlg/tpusrlst.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/optdlg/tpusrlst.cxx')
-rw-r--r--sc/source/ui/optdlg/tpusrlst.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/optdlg/tpusrlst.cxx b/sc/source/ui/optdlg/tpusrlst.cxx
index 3eee0085bb0e..a4f7428a836d 100644
--- a/sc/source/ui/optdlg/tpusrlst.cxx
+++ b/sc/source/ui/optdlg/tpusrlst.cxx
@@ -324,15 +324,12 @@ void ScTpUserLists::MakeListStr( String& rListStr )
for(xub_StrLen i=0;i<nToken;i++)
{
- String aString=rListStr.GetToken(i,LF);
- aString.EraseLeadingChars(' ');
- aString.EraseTrailingChars(' ');
+ rtl::OUString aString = comphelper::string::strip(rListStr.GetToken(i, LF), ' ');
aStr+=aString;
aStr+=cDelimiter;
}
- aStr.EraseLeadingChars( cDelimiter );
- aStr.EraseTrailingChars( cDelimiter );
+ aStr = comphelper::string::strip(aStr, cDelimiter);
xub_StrLen nLen = aStr.Len();
rListStr.Erase();