vcl/source/gdi/pdfwriter_impl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9971b64067576dbb05d2f77ad62ff665175a2bf3
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Sat Mar 22 12:00:58 2014 +0100

    cppcheck: fix Possible inefficient checking
    
    Change-Id: I71449d40875970aa49320ae86a3104d132f5d5e9

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index bf8c707..29353a1 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -10607,7 +10607,7 @@ void PDFWriterImpl::setFont( const Font& rFont )
 
 void PDFWriterImpl::push( sal_uInt16 nFlags )
 {
-    OSL_ENSURE( m_aGraphicsStack.size() > 0, "invalid graphics stack" );
+    OSL_ENSURE( !m_aGraphicsStack.empty(), "invalid graphics stack" );
     m_aGraphicsStack.push_front( m_aGraphicsStack.front() );
     m_aGraphicsStack.front().m_nFlags = nFlags;
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to