From 1606e22d979e7a1cae31c609b214649ded1e5885 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 5 Jan 2017 16:56:39 +0100 Subject: No need to check isEmpty() before clearing Change-Id: Ie32a4ee915d57618d2a6a661febf39fd0d55dd80 --- oox/source/export/vmlexport.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'oox') 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 -- cgit