[Libreoffice-commits] .: svtools/source

Julien Nabet serval2412 at kemper.freedesktop.org
Tue Jan 31 13:57:10 PST 2012


 svtools/source/filter/filter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4d83e7010870fb8d74b19c28f1c4cd3fa616f514
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Jan 31 22:56:20 2012 +0100

    Fix "Possible inefficient checking for 'rChunkData' emptiness"

diff --git a/svtools/source/filter/filter.cxx b/svtools/source/filter/filter.cxx
index bd95ab7..ee1f329 100644
--- a/svtools/source/filter/filter.cxx
+++ b/svtools/source/filter/filter.cxx
@@ -1961,7 +1961,7 @@ sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String&
                                         if ( aAdditionalChunkSequence[ j ].Value >>= aByteSeq )
                                         {
                                             std::vector< vcl::PNGWriter::ChunkData >& rChunkData = aPNGWriter.GetChunks();
-                                            if ( rChunkData.size() )
+                                            if ( !rChunkData.empty() )
                                             {
                                                 sal_uInt32 nChunkLen = aByteSeq.getLength();
 


More information about the Libreoffice-commits mailing list