summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-05 16:56:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-05 16:56:39 +0100
commit1606e22d979e7a1cae31c609b214649ded1e5885 (patch)
tree6b279554926653884e6362902e00e41cb36417d1 /oox
parentab3fe69ffb9c9e8d57968bb112434df91bfc3c7e (diff)
No need to check isEmpty() before clearing
Change-Id: Ie32a4ee915d57618d2a6a661febf39fd0d55dd80
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/vmlexport.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index ba3801b3c309..274c99b660f5 100644
--- a/oox/source/export/vmlexport.cxx
+++ b/oox/source/export/vmlexport.cxx
@@ -98,9 +98,7 @@ void VMLExport::OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance )
m_nShapeType = ESCHER_ShpInst_Nil;
m_pShapeAttrList = FastSerializerHelper::createAttrList();
- if (!m_ShapeStyle.isEmpty())
- m_ShapeStyle.setLength(0);
-
+ m_ShapeStyle.setLength(0);
m_ShapeStyle.ensureCapacity(200);
// postpone the output so that we are able to write even the elements