summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/XMLStylesExportHelper.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-25 21:02:26 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-26 00:49:15 +0100
commitafc4864e2677b66182785f873d838081b2e331a4 (patch)
tree6e2b40fbd501669ad391f633c03cd7039ad313d0 /sc/source/filter/xml/XMLStylesExportHelper.cxx
parent0f6570453722e9fc3a9bb28b32b64cee7d4bbdbb (diff)
stylistic clean-up
Change-Id: I7663001236707eb4324b6d39d27b309e02f5af6e
Diffstat (limited to 'sc/source/filter/xml/XMLStylesExportHelper.cxx')
-rw-r--r--sc/source/filter/xml/XMLStylesExportHelper.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx b/sc/source/filter/xml/XMLStylesExportHelper.cxx
index 830140a3fc54..6e80aa8ea951 100644
--- a/sc/source/filter/xml/XMLStylesExportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesExportHelper.cxx
@@ -561,14 +561,12 @@ void ScMyDefaultStyles::FillDefaultStyles(const sal_Int32 nTable,
const sal_Int32 nLastRow, const sal_Int32 nLastCol,
const ScFormatRangeStyles* pCellStyles, ScDocument* pDoc)
{
- if (pRowDefaults)
- delete pRowDefaults;
+ delete pRowDefaults;
pRowDefaults = new ScMyDefaultStyleList(nLastRow + 1);
- FillDefaultStyles(nTable, nLastRow, nLastCol, pCellStyles, pDoc, true);
- if (pColDefaults)
- delete pColDefaults;
+ FillDefaultStyles(nTable, nLastRow, nLastCol, pCellStyles, pDoc, true);
+ delete pColDefaults;
pColDefaults = new ScMyDefaultStyleList(nLastCol + 1);
- FillDefaultStyles(nTable, nLastRow, nLastCol, pCellStyles, pDoc, false);
+ FillDefaultStyles(nTable, nLastRow, nLastCol, pCellStyles, pDoc, false);
}
ScMyDefaultStyles::~ScMyDefaultStyles()