[Libreoffice-commits] core.git: oox/source
Stephan Bergmann
sbergman at redhat.com
Thu Jan 5 15:57:07 UTC 2017
oox/source/export/vmlexport.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 1606e22d979e7a1cae31c609b214649ded1e5885
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Jan 5 16:56:39 2017 +0100
No need to check isEmpty() before clearing
Change-Id: Ie32a4ee915d57618d2a6a661febf39fd0d55dd80
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index ba3801b..274c99b 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
More information about the Libreoffice-commits
mailing list