summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/csvruler.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-03 09:59:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-04 00:51:57 +0000
commitc6223049651d6607101ef04271773e478a429c8a (patch)
treef2bfb8c976896009409ae47780c324d3a9b51c77 /sc/source/ui/dbgui/csvruler.cxx
parent242ed97d9a74a08363e1306452bba20f06d673e4 (diff)
V813: Decreased performance
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
Diffstat (limited to 'sc/source/ui/dbgui/csvruler.cxx')
-rw-r--r--sc/source/ui/dbgui/csvruler.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx
index 1aae189e4672..71a1ce4f4c84 100644
--- a/sc/source/ui/dbgui/csvruler.cxx
+++ b/sc/source/ui/dbgui/csvruler.cxx
@@ -32,7 +32,7 @@ using namespace com::sun::star::uno;
#define SEP_PATH "Office.Calc/Dialogs/CSVImport"
#define FIXED_WIDTH_LIST "FixedWidthList"
-static void load_FixedWidthList(ScCsvSplits &aSplits)
+static void load_FixedWidthList(ScCsvSplits &rSplits)
{
OUString sSplits;
OUString sFixedWidthLists;
@@ -49,7 +49,7 @@ static void load_FixedWidthList(ScCsvSplits &aSplits)
if( pProperties[0].hasValue() )
{
- aSplits.Clear();
+ rSplits.Clear();
pProperties[0] >>= sFixedWidthLists;
sSplits = sFixedWidthLists;
@@ -57,17 +57,17 @@ static void load_FixedWidthList(ScCsvSplits &aSplits)
// String ends with a semi-colon so there is no 'int' after the last one.
sal_Int32 n = comphelper::string::getTokenCount(sSplits, ';') - 1;
for (sal_Int32 i = 0; i < n; ++i)
- aSplits.Insert( sSplits.getToken(i, ';').toInt32() );
+ rSplits.Insert( sSplits.getToken(i, ';').toInt32() );
}
}
-static void save_FixedWidthList(ScCsvSplits aSplits)
+static void save_FixedWidthList(const ScCsvSplits& rSplits)
{
OUStringBuffer sSplits;
// Create a semi-colon separated string to save the splits
- sal_uInt32 n = aSplits.Count();
+ sal_uInt32 n = rSplits.Count();
for (sal_uInt32 i = 0; i < n; ++i)
{
- sSplits.append( OUString::number( aSplits[i] ) );
+ sSplits.append(OUString::number(rSplits[i]));
sSplits.append(";");
}