summaryrefslogtreecommitdiff
path: root/sc/source/ui/optdlg/tpusrlst.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-28 13:56:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-30 13:18:35 +0000
commitaa398496d84667f98cf4c07d9852a94584a5b3c9 (patch)
treee8d56b7d29e8c51a5ad7bff4bb8c69a7e71a35f0 /sc/source/ui/optdlg/tpusrlst.cxx
parent89dc8369186227f25b6543ad3acdae67dc2da068 (diff)
aInputStr never used, *perhaps* it should have been, but 10+ years this way
Diffstat (limited to 'sc/source/ui/optdlg/tpusrlst.cxx')
-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);