Kaydet (Commit) 032b5090 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

No need to check isEmpty() before clearing

Change-Id: I75b077cbc2d100964d4157220561d53c1b235199
üst 9e6132b9
...@@ -60,8 +60,7 @@ void RtfSdrExport::OpenContainer(sal_uInt16 nEscherContainer, int nRecInstance) ...@@ -60,8 +60,7 @@ void RtfSdrExport::OpenContainer(sal_uInt16 nEscherContainer, int nRecInstance)
if (nEscherContainer == ESCHER_SpContainer) if (nEscherContainer == ESCHER_SpContainer)
{ {
m_nShapeType = ESCHER_ShpInst_Nil; m_nShapeType = ESCHER_ShpInst_Nil;
if (!m_aShapeStyle.isEmpty()) m_aShapeStyle.setLength(0);
m_aShapeStyle.setLength(0);
m_aShapeStyle.ensureCapacity(200); m_aShapeStyle.ensureCapacity(200);
m_aShapeProps.clear(); m_aShapeProps.clear();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment