summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-26 15:20:18 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-27 02:37:13 +0100
commitbfc674c2cedfa8a07a67e71d1ca976e2556bef4d (patch)
tree430468d42b7af5f961d227ca6a3ab40aa75fd21e
parentb99893b40297c4e82616bea8dab6bc9d82d25b2d (diff)
remove some parameters
Change-Id: Ib812d7092c0f375f253a3db2929b2ea6b63806fa
-rw-r--r--sc/source/filter/xml/XMLStylesImportHelper.cxx14
-rw-r--r--sc/source/filter/xml/XMLStylesImportHelper.hxx8
2 files changed, 6 insertions, 16 deletions
diff --git a/sc/source/filter/xml/XMLStylesImportHelper.cxx b/sc/source/filter/xml/XMLStylesImportHelper.cxx
index d2cfa2191f77..c725de154671 100644
--- a/sc/source/filter/xml/XMLStylesImportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesImportHelper.cxx
@@ -49,9 +49,7 @@ ScMyStyleRanges::~ScMyStyleRanges()
delete pCurrencyList;
}
-void ScMyStyleRanges::AddRange(const ScRange& rRange,
- const rtl::OUString* /*pStyleName*/, const sal_Int16 nType,
- ScXMLImport& /*rImport*/)
+void ScMyStyleRanges::AddRange(const ScRange& rRange, const sal_Int16 nType)
{
switch (nType)
{
@@ -112,9 +110,7 @@ void ScMyStyleRanges::AddRange(const ScRange& rRange,
}
}
-void ScMyStyleRanges::AddCurrencyRange(const ScRange& rRange,
- const rtl::OUString* /*pStyleName*/, const rtl::OUString* pCurrency,
- ScXMLImport& /*rImport*/)
+void ScMyStyleRanges::AddCurrencyRange(const ScRange& rRange, const rtl::OUString* pCurrency)
{
if (!pCurrencyList)
pCurrencyList = new ScMyCurrencyStylesSet();
@@ -354,11 +350,9 @@ void ScMyStylesImportHelper::AddSingleRange(const ScRange& rRange)
if (aItr != aCellStyles.end())
{
if (nPrevCellType != util::NumberFormat::CURRENCY)
- aItr->xRanges->AddRange(rRange, pPrevStyleName, nPrevCellType,
- rImport);
+ aItr->xRanges->AddRange(rRange, nPrevCellType);
else
- aItr->xRanges->AddCurrencyRange(rRange, pPrevStyleName, pPrevCurrency,
- rImport);
+ aItr->xRanges->AddCurrencyRange(rRange, pPrevCurrency);
}
}
diff --git a/sc/source/filter/xml/XMLStylesImportHelper.hxx b/sc/source/filter/xml/XMLStylesImportHelper.hxx
index 1d8459e08962..395a287e6d7b 100644
--- a/sc/source/filter/xml/XMLStylesImportHelper.hxx
+++ b/sc/source/filter/xml/XMLStylesImportHelper.hxx
@@ -100,12 +100,8 @@ class ScMyStyleRanges : public SvRefBase
public:
ScMyStyleRanges();
~ScMyStyleRanges();
- void AddRange(const ScRange& rRange,
- const rtl::OUString* pStyleName, const sal_Int16 nType,
- ScXMLImport& rImport);
- void AddCurrencyRange(const ScRange& rRange,
- const rtl::OUString* pStyleName, const rtl::OUString* pCurrency,
- ScXMLImport& rImport);
+ void AddRange(const ScRange& rRange, const sal_Int16 nType);
+ void AddCurrencyRange(const ScRange& rRange, const rtl::OUString* pCurrency);
void InsertCol(const sal_Int32 nCol, const sal_Int32 nTab, ScDocument* pDoc);
void SetStylesToRanges(const rtl::OUString* pStyleName, ScXMLImport& rImport);
};