Some cppcheck cleaning

This commit is contained in:
Julien Nabet
2011-09-01 21:33:22 +02:00
parent f8d22519a4
commit 78c1a9f5c4
2 changed files with 2 additions and 2 deletions

View File

@@ -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 );

View File

@@ -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();