[Libreoffice-commits] .: dbaccess/source vcl/win

Julien Nabet serval2412 at kemper.freedesktop.org
Thu Sep 1 12:34:31 PDT 2011


 dbaccess/source/core/dataaccess/databasedocument.cxx |    2 +-
 vcl/win/source/window/salframe.cxx                   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 78c1a9f5c4ff63aadda0d1b0ddbea1d41622c42c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Sep 1 21:33:22 2011 +0200

    Some cppcheck cleaning

diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index 37f6091..3350275 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -443,7 +443,7 @@ void lcl_uglyHackToStoreDialogeEmbedImages( const Reference< XStorageBasedLibrar
         }
     }
     // if we have any image urls, make sure we copy the associated images into tempPictures
-    if ( vEmbedImgUrls.size() )
+    if ( !vEmbedImgUrls.empty() )
     {
         // Export the images to the storage
         Sequence< Any > aArgs( 1 );
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 80051f3..be77a09 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -1645,7 +1645,7 @@ static void ImplSetParentFrame( WinSalFrame* pThis, HWND hNewParentWnd, sal_Bool
     DBG_ASSERT( systemChildren.empty(), "WinSalFrame::SetParent() parent of living system child window will be destroyed!");
 
     // reparent children before old parent is destroyed
-    for( ::std::vector< WinSalFrame* >::iterator iChild = children.begin(); iChild != children.end(); iChild++ )
+    for( ::std::vector< WinSalFrame* >::iterator iChild = children.begin(); iChild != children.end(); ++iChild )
         ImplSetParentFrame( *iChild, hWnd, FALSE );
 
     children.clear();


More information about the Libreoffice-commits mailing list