diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-08-24 22:51:47 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-08-28 15:31:40 +0200 |
commit | 176598dbbee3d6e14893de11c08401a00cdd87aa (patch) | |
tree | 68d1a2faaa961fe81d22b8c07fc5b5922b7fc498 /sc | |
parent | f0b7b2e30f493c1aa9881d25d6812225bd658708 (diff) |
remove useless null pointer checks before delete
Change-Id: I33ba84aebcb8d8abec4af13f9c0bb12a3364d8de
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index e09868fefe0d..f1e49fedc87a 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -273,12 +273,9 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport, ScXMLTableRowCellContext::~ScXMLTableRowCellContext() { - if (pContentValidationName) - delete pContentValidationName; - if (pDetectiveObjVec) - delete pDetectiveObjVec; - if (pCellRangeSource) - delete pCellRangeSource; + delete pContentValidationName; + delete pDetectiveObjVec; + delete pCellRangeSource; } void ScXMLTableRowCellContext::LockSolarMutex() |