summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-26 15:12:33 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-27 02:37:13 +0100
commitb99893b40297c4e82616bea8dab6bc9d82d25b2d (patch)
treeaa6e49f2a8233a97dd8c1b19daa2efe9380d8099
parentb02c52b467ff3259501350f2e6cb0de123f5b794 (diff)
remove unneeded variable
Change-Id: Ic422a31252d60ddbafdfc05104b704ff9ffc4274
-rw-r--r--sc/source/filter/xml/XMLStylesImportHelper.cxx13
-rw-r--r--sc/source/filter/xml/XMLStylesImportHelper.hxx4
2 files changed, 6 insertions, 11 deletions
diff --git a/sc/source/filter/xml/XMLStylesImportHelper.cxx b/sc/source/filter/xml/XMLStylesImportHelper.cxx
index ea827eaf2d86..d2cfa2191f77 100644
--- a/sc/source/filter/xml/XMLStylesImportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesImportHelper.cxx
@@ -51,7 +51,7 @@ ScMyStyleRanges::~ScMyStyleRanges()
void ScMyStyleRanges::AddRange(const ScRange& rRange,
const rtl::OUString* /*pStyleName*/, const sal_Int16 nType,
- ScXMLImport& /*rImport*/, const sal_uInt32 /*nMaxRanges*/)
+ ScXMLImport& /*rImport*/)
{
switch (nType)
{
@@ -114,7 +114,7 @@ void ScMyStyleRanges::AddRange(const ScRange& rRange,
void ScMyStyleRanges::AddCurrencyRange(const ScRange& rRange,
const rtl::OUString* /*pStyleName*/, const rtl::OUString* pCurrency,
- ScXMLImport& /*rImport*/, const sal_uInt32 /*nMaxRanges*/)
+ ScXMLImport& /*rImport*/)
{
if (!pCurrencyList)
pCurrencyList = new ScMyCurrencyStylesSet();
@@ -248,7 +248,6 @@ ScMyStylesImportHelper::ScMyStylesImportHelper(ScXMLImport& rTempImport)
pPrevStyleName(NULL),
pCurrency(NULL),
pPrevCurrency(NULL),
- nMaxRanges(0),
bPrevRangeAdded(true)
{
}
@@ -351,17 +350,15 @@ void ScMyStylesImportHelper::AddDefaultRange(const ScRange& rRange)
void ScMyStylesImportHelper::AddSingleRange(const ScRange& rRange)
{
- if (nMaxRanges == 0)
- nMaxRanges = aColDefaultStyles.size();
ScMyStylesSet::iterator aItr(GetIterator(pPrevStyleName));
if (aItr != aCellStyles.end())
{
if (nPrevCellType != util::NumberFormat::CURRENCY)
aItr->xRanges->AddRange(rRange, pPrevStyleName, nPrevCellType,
- rImport, nMaxRanges);
+ rImport);
else
aItr->xRanges->AddCurrencyRange(rRange, pPrevStyleName, pPrevCurrency,
- rImport, nMaxRanges);
+ rImport);
}
}
@@ -472,7 +469,6 @@ void ScMyStylesImportHelper::EndTable()
AddRange();
bPrevRangeAdded = true;
}
- nMaxRanges = 0;
}
void ScMyStylesImportHelper::SetStylesToRanges()
@@ -486,7 +482,6 @@ void ScMyStylesImportHelper::SetStylesToRanges()
}
aColDefaultStyles.clear();
aCellStyles.clear();
- nMaxRanges = 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/filter/xml/XMLStylesImportHelper.hxx b/sc/source/filter/xml/XMLStylesImportHelper.hxx
index b64411dc5db7..1d8459e08962 100644
--- a/sc/source/filter/xml/XMLStylesImportHelper.hxx
+++ b/sc/source/filter/xml/XMLStylesImportHelper.hxx
@@ -102,10 +102,10 @@ public:
~ScMyStyleRanges();
void AddRange(const ScRange& rRange,
const rtl::OUString* pStyleName, const sal_Int16 nType,
- ScXMLImport& rImport, const sal_uInt32 nMaxRanges);
+ ScXMLImport& rImport);
void AddCurrencyRange(const ScRange& rRange,
const rtl::OUString* pStyleName, const rtl::OUString* pCurrency,
- ScXMLImport& rImport, const sal_uInt32 nMaxRanges);
+ ScXMLImport& rImport);
void InsertCol(const sal_Int32 nCol, const sal_Int32 nTab, ScDocument* pDoc);
void SetStylesToRanges(const rtl::OUString* pStyleName, ScXMLImport& rImport);
};