Kaydet (Commit) 76b3568e authored tarafından Kayo Hamid's avatar Kayo Hamid Kaydeden (comit) Cédric Bosdonnat

cppcheck inefficient checking for emptiness

From cppcheck: Using xxxx.empty() instead of xxxx.size() can be faster.
 xxxx.size() can take linear time but xxxx.empty() is guaranteed to take
 constant time
üst a2970624
......@@ -316,7 +316,7 @@ void SfxDialogLibraryContainer::storeLibrariesToStorage( const uno::Reference< e
::xmlscript::importDialogModel( xInput, xDialogModel, xContext, mxOwnerDocument );
std::vector< rtl::OUString > vEmbeddedImageURLs;
lcl_deepInspectForEmbeddedImages( Reference< XInterface >( xDialogModel, UNO_QUERY ), vEmbeddedImageURLs );
if ( vEmbeddedImageURLs.size() )
if ( !vEmbeddedImageURLs.empty() )
{
// Export the images to the storage
Sequence< Any > aArgs( 1 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment