[Libreoffice-commits] .: sfx2/source
Julien Nabet
serval2412 at kemper.freedesktop.org
Sun Jul 15 06:26:45 PDT 2012
sfx2/source/dialog/filtergrouping.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c64e33efb0f26c9bc9298c7e902efe9af22ca500
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Jul 15 15:26:06 2012 +0200
Possible inefficient checking for <var> emptiness
Change-Id: I049ebd41756ffdd73f534c3bf34f81106f8549a9
diff --git a/sfx2/source/dialog/filtergrouping.cxx b/sfx2/source/dialog/filtergrouping.cxx
index 2745d65..ce73733 100644
--- a/sfx2/source/dialog/filtergrouping.cxx
+++ b/sfx2/source/dialog/filtergrouping.cxx
@@ -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++ )
More information about the Libreoffice-commits
mailing list