diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-04-12 17:47:44 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-04-12 17:47:44 +0200 |
commit | 2ae639af5ac5e76b6ecbb7e8fb92d32b1ce002ae (patch) | |
tree | c6edd35a8538ad223adff468551785c13b4b5b76 /vcl | |
parent | 6a3440de1d1156c6a0bdb02e7cc38dea990654e3 (diff) |
cppcheck: Possible inefficient checking for emptiness
Change-Id: I2b353435b29046b05acbb1193fda168309e01f4b
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 4f054a673df2..88cdf3986dc3 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -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() ) |