summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-01-05 19:35:05 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-01-08 03:35:22 +0100
commitf9234784f05742a6d4bf3ddb62ce89d3c2a022d1 (patch)
tree77fac22fc1f9f9279dcf89503ba4814958e9d6f5 /oox
parentc0ae710c1c449ccacfa4910ccdace9a7dd6fcb8b (diff)
deleting a null pointer is fine
Change-Id: Iba329fae2d6882799a0d470590bb7bcfe88d1e92
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/datasourcecontext.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/oox/source/drawingml/chart/datasourcecontext.cxx b/oox/source/drawingml/chart/datasourcecontext.cxx
index ceb0efc14d02..83893cb55f8c 100644
--- a/oox/source/drawingml/chart/datasourcecontext.cxx
+++ b/oox/source/drawingml/chart/datasourcecontext.cxx
@@ -44,10 +44,7 @@ DoubleSequenceContext::DoubleSequenceContext( ContextHandler2Helper& rParent, Da
DoubleSequenceContext::~DoubleSequenceContext()
{
- if( mpNumberFormatter != nullptr )
- {
- delete mpNumberFormatter;
- }
+ delete mpNumberFormatter;
}
ContextHandlerRef DoubleSequenceContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs )