summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/optdlg/tpusrlst.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sc/source/ui/optdlg/tpusrlst.cxx b/sc/source/ui/optdlg/tpusrlst.cxx
index 099d9f9165a0..4aa0e9caba52 100644
--- a/sc/source/ui/optdlg/tpusrlst.cxx
+++ b/sc/source/ui/optdlg/tpusrlst.cxx
@@ -319,14 +319,8 @@ void ScTpUserLists::UpdateEntries( size_t nList )
void ScTpUserLists::MakeListStr( String& rListStr )
{
- String aInputStr(rListStr);
String aStr;
- xub_StrLen nLen = aStr.Len();
- xub_StrLen c = 0;
-
- aInputStr.ConvertLineEnd( LINEEND_LF );
-
xub_StrLen nToken = comphelper::string::getTokenCount(rListStr, LF);
for(xub_StrLen i=0;i<nToken;i++)
@@ -340,12 +334,12 @@ void ScTpUserLists::MakeListStr( String& rListStr )
aStr.EraseLeadingChars( cDelimiter );
aStr.EraseTrailingChars( cDelimiter );
- nLen = aStr.Len();
+ xub_StrLen nLen = aStr.Len();
rListStr.Erase();
// Alle Doppelten cDelimiter entfernen:
- c=0;
+ xub_StrLen c = 0;
while ( c < nLen )
{
rListStr += aStr.GetChar(c);