Kaydet (Commit) c64e33ef authored tarafından Julien Nabet's avatar Julien Nabet

Possible inefficient checking for <var> emptiness

Change-Id: I049ebd41756ffdd73f534c3bf34f81106f8549a9
üst 602445c1
......@@ -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++ )
......
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