[Libreoffice-commits] core.git: sw/source

Julien Nabet serval2412 at yahoo.fr
Tue Oct 29 20:46:40 CET 2013


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

New commits:
commit 3ad44c41234aaa29af8d900f9dc4dc4e131d1453
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Oct 29 20:44:23 2013 +0100

    cppcheck: fix Possible inefficient checking for emptiness
    
    Change-Id: I4d98c7feb71daafeba95a493c71f3f5d520b3058

diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index 3142d63..24ab7c4 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -250,7 +250,7 @@ void WW8_WrtBookmarks::Append( WW8_CP nStartCp, const OUString& rNm, const ::sw:
 
 void WW8_WrtBookmarks::Write( WW8Export& rWrt)
 {
-    if (!aSttCps.size())
+    if (aSttCps.empty())
         return;
     CPItr aItr;
     long n;


More information about the Libreoffice-commits mailing list