diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-06-03 23:34:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-06-03 23:39:59 +0200 |
commit | 30f2fa988fa9ed52bd2db693e099ab2c7f4efdf5 (patch) | |
tree | c3b8400ff2ca616621a8e1c4823366c2942d1f2e | |
parent | ebd70ae1d84eed5e5311fcc018a122be2e8719d4 (diff) |
move these two variables from member variables to normal variables
Change-Id: Ie57cf12a3dc0984367c34dc4f52fd00036cf3d9d
-rw-r--r-- | sc/source/filter/xml/xmlrowi.cxx | 6 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlrowi.hxx | 7 |
2 files changed, 5 insertions, 8 deletions
diff --git a/sc/source/filter/xml/xmlrowi.cxx b/sc/source/filter/xml/xmlrowi.cxx index f6b1ae057247..548eafc08c36 100644 --- a/sc/source/filter/xml/xmlrowi.cxx +++ b/sc/source/filter/xml/xmlrowi.cxx @@ -221,9 +221,7 @@ ScXMLTableRowsContext::ScXMLTableRowsContext( ScXMLImport& rImport, const bool bTempHeader, const bool bTempGroup ) : SvXMLImportContext( rImport, nPrfx, rLName ), nHeaderStartRow(0), - nHeaderEndRow(0), nGroupStartRow(0), - nGroupEndRow(0), bHeader(bTempHeader), bGroup(bTempGroup), bGroupDisplay(true) @@ -302,7 +300,7 @@ void ScXMLTableRowsContext::EndElement() ScXMLImport& rXMLImport(GetScImport()); if (bHeader) { - nHeaderEndRow = rXMLImport.GetTables().GetCurrentRow(); + SCROW nHeaderEndRow = rXMLImport.GetTables().GetCurrentRow(); if (nHeaderStartRow <= nHeaderEndRow) { uno::Reference <sheet::XPrintAreas> xPrintAreas (rXMLImport.GetTables().GetCurrentXSheet(), uno::UNO_QUERY); @@ -327,7 +325,7 @@ void ScXMLTableRowsContext::EndElement() } else if (bGroup) { - nGroupEndRow = rXMLImport.GetTables().GetCurrentRow(); + SCROW nGroupEndRow = rXMLImport.GetTables().GetCurrentRow(); SCTAB nSheet(rXMLImport.GetTables().GetCurrentSheet()); if (nGroupStartRow <= nGroupEndRow) { diff --git a/sc/source/filter/xml/xmlrowi.hxx b/sc/source/filter/xml/xmlrowi.hxx index c24a103f9b6e..83e13d59cc88 100644 --- a/sc/source/filter/xml/xmlrowi.hxx +++ b/sc/source/filter/xml/xmlrowi.hxx @@ -21,6 +21,7 @@ #include <xmloff/xmlictxt.hxx> #include <xmloff/xmlimp.hxx> +#include "address.hxx" class ScXMLImport; @@ -53,10 +54,8 @@ public: class ScXMLTableRowsContext : public SvXMLImportContext { - sal_Int32 nHeaderStartRow; - sal_Int32 nHeaderEndRow; - sal_Int32 nGroupStartRow; - sal_Int32 nGroupEndRow; + SCROW nHeaderStartRow; + SCROW nGroupStartRow; bool bHeader; bool bGroup; bool bGroupDisplay; |