cppcheck: Possible inefficient checking for emptiness

Change-Id: I2b353435b29046b05acbb1193fda168309e01f4b
This commit is contained in:
Julien Nabet
2014-04-12 17:47:44 +02:00
parent 6a3440de1d
commit 2ae639af5a

View File

@@ -2712,7 +2712,7 @@ sal_Int32 PDFWriterImpl::emitStructure( PDFStructureElement& rEle )
aLine.append( "\n" );
}
}
if( ! rEle.m_aBBox.IsEmpty() || rEle.m_aAttributes.size() )
if( (! rEle.m_aBBox.IsEmpty()) || (! rEle.m_aAttributes.empty()) )
{
OString aAttribs = emitStructureAttributes( rEle );
if( !aAttribs.isEmpty() )