[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Fri Jan 6 09:31:34 UTC 2017


 sw/source/filter/ww8/rtfsdrexport.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 032b5090729a19170856851215a2ea8ea8616e81
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jan 6 10:30:55 2017 +0100

    No need to check isEmpty() before clearing
    
    Change-Id: I75b077cbc2d100964d4157220561d53c1b235199

diff --git a/sw/source/filter/ww8/rtfsdrexport.cxx b/sw/source/filter/ww8/rtfsdrexport.cxx
index 4397dff..d76a1f6 100644
--- a/sw/source/filter/ww8/rtfsdrexport.cxx
+++ b/sw/source/filter/ww8/rtfsdrexport.cxx
@@ -60,8 +60,7 @@ void RtfSdrExport::OpenContainer(sal_uInt16 nEscherContainer, int nRecInstance)
     if (nEscherContainer == ESCHER_SpContainer)
     {
         m_nShapeType = ESCHER_ShpInst_Nil;
-        if (!m_aShapeStyle.isEmpty())
-            m_aShapeStyle.setLength(0);
+        m_aShapeStyle.setLength(0);
         m_aShapeStyle.ensureCapacity(200);
         m_aShapeProps.clear();
     }


More information about the Libreoffice-commits mailing list