From 2ae639af5ac5e76b6ecbb7e8fb92d32b1ce002ae Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 12 Apr 2014 17:47:44 +0200 Subject: [PATCH] cppcheck: Possible inefficient checking for emptiness Change-Id: I2b353435b29046b05acbb1193fda168309e01f4b --- vcl/source/gdi/pdfwriter_impl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() )