Possible inefficient checking for <var> emptiness

Change-Id: I049ebd41756ffdd73f534c3bf34f81106f8549a9
This commit is contained in:
Julien Nabet
2012-07-15 15:26:06 +02:00
parent 602445c1aa
commit c64e33efb0

View File

@@ -1048,7 +1048,7 @@ namespace sfx2
if ( xFilterGroupManager.is() )
{
// Add both html/pdf filter as a filter group to get a separator between both groups
if ( aImportantFilterGroup.size() > 0 )
if ( !aImportantFilterGroup.empty() )
{
Sequence< StringPair > aFilters( aImportantFilterGroup.size() );
for ( sal_Int32 i = 0; i < (sal_Int32)aImportantFilterGroup.size(); i++ )
@@ -1068,7 +1068,7 @@ namespace sfx2
}
}
if ( aFilterGroup.size() > 0 )
if ( !aFilterGroup.empty() )
{
Sequence< StringPair > aFilters( aFilterGroup.size() );
for ( sal_Int32 i = 0; i < (sal_Int32)aFilterGroup.size(); i++ )