diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-07-15 15:26:06 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-07-15 15:26:06 +0200 |
commit | c64e33efb0f26c9bc9298c7e902efe9af22ca500 (patch) | |
tree | fc519b482add5fa3d1ce89c3cb584d2dbedab46f /sfx2 | |
parent | 602445c1aae34c1770b627c60238f4f8ba8515ac (diff) |
Possible inefficient checking for <var> emptiness
Change-Id: I049ebd41756ffdd73f534c3bf34f81106f8549a9
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/filtergrouping.cxx | 4 |
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++ ) |