diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-06 07:44:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-06 07:45:25 +0200 |
commit | 794f09f195a449e387ebfbd53eb1b693803c95e7 (patch) | |
tree | 4c82e01015ccac094261060021b49757dab12f19 /fpicker/source/aqua | |
parent | 3f569908ac72c20826a45ebed59af9b1e5449207 (diff) |
simplify ternary conditions "xxx ? true : yyy"
Look for code like:
xxx ? true : yyy;
Which can be simplified to:
xxx || yyy
Change-Id: Ib7ca86580bfd0cf04674328a3c0cf3747de4758d
Diffstat (limited to 'fpicker/source/aqua')
-rw-r--r-- | fpicker/source/aqua/FilterHelper.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpicker/source/aqua/FilterHelper.mm b/fpicker/source/aqua/FilterHelper.mm index ef048f28fe47..99c1e93cf584 100644 --- a/fpicker/source/aqua/FilterHelper.mm +++ b/fpicker/source/aqua/FilterHelper.mm @@ -135,16 +135,16 @@ public: bool operator () ( const FilterEntry& _rEntry ) { - sal_Bool bMatch; + bool bMatch; if( !_rEntry.hasSubFilters() ) { //first try the complete filter name rtl::OUString title = _rEntry.getTitle(); - bMatch = ( title.equals(rTitle) ); + bMatch = title.equals(rTitle); if (!bMatch) { //we didn't find a match using the full name, let's give it another //try using the shrunk version rtl::OUString aShrunkName = shrinkFilterName( _rEntry.getTitle() ).trim(); - bMatch = ( aShrunkName.equals(rTitle) ); + bMatch = aShrunkName.equals(rTitle); } } else @@ -156,7 +156,7 @@ public: *this ); - return bMatch ? true : false; + return bMatch; } bool operator () ( const UnoFilterEntry& _rEntry ) |