summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-07-15 15:26:06 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-07-15 15:26:06 +0200
commitc64e33efb0f26c9bc9298c7e902efe9af22ca500 (patch)
treefc519b482add5fa3d1ce89c3cb584d2dbedab46f
parent602445c1aae34c1770b627c60238f4f8ba8515ac (diff)
Possible inefficient checking for <var> emptiness
Change-Id: I049ebd41756ffdd73f534c3bf34f81106f8549a9
-rw-r--r--sfx2/source/dialog/filtergrouping.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/filtergrouping.cxx b/sfx2/source/dialog/filtergrouping.cxx
index 2745d65f1e49..ce73733fa3e3 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++ )