diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-15 09:51:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-15 12:30:43 +0000 |
commit | 1ee1d0992439177f206faf0748ebf5d75fd582f5 (patch) | |
tree | ffe92af947ed4bf80a0becc5328e3cf22ca718da | |
parent | 3ec0a2f69e6fd5e870cdf7185e667deac67e036f (diff) |
no point checking for null before delete
Change-Id: I58cbb075a56518d71874137180ad92ae764ec4bf
-rw-r--r-- | oox/source/drawingml/table/tableproperties.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/oox/source/drawingml/table/tableproperties.cxx b/oox/source/drawingml/table/tableproperties.cxx index 85d758a5fd97..4de51ee959ce 100644 --- a/oox/source/drawingml/table/tableproperties.cxx +++ b/oox/source/drawingml/table/tableproperties.cxx @@ -296,11 +296,7 @@ void TableProperties::pushToPropSet( const ::oox::core::XmlFilterBase& rFilterBa if(mbOwnTblStyle) { TableStyle* pTableStyle = (TableStyle*)&rTableStyle; - if(pTableStyle != NULL) - { - delete pTableStyle; - pTableStyle = NULL; - } + delete pTableStyle; mbOwnTblStyle = false; } } |