Possible inefficient checking for <var> emptiness
Change-Id: I049ebd41756ffdd73f534c3bf34f81106f8549a9
This commit is contained in:
@@ -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++ )
|
||||
|
Reference in New Issue
Block a user