diff options
author | David Tardon <dtardon@redhat.com> | 2010-11-16 09:49:07 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-11-16 11:58:25 +0100 |
commit | 29a75314eded91fd1c4441d71061f9f9441d443e (patch) | |
tree | 80088922bc12d4293a09acf20231d75bef759d5f /desktop/source/deployment/misc | |
parent | ba2064a80f21ab80f7be7ab1cadad7ca5240798c (diff) |
simplify bool expression
Diffstat (limited to 'desktop/source/deployment/misc')
-rw-r--r-- | desktop/source/deployment/misc/dp_update.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/source/deployment/misc/dp_update.cxx b/desktop/source/deployment/misc/dp_update.cxx index 97453d6b2781..688389df529d 100644 --- a/desktop/source/deployment/misc/dp_update.cxx +++ b/desktop/source/deployment/misc/dp_update.cxx @@ -187,11 +187,9 @@ void getDefaultUpdateInfos( bool containsBundledOnly(Sequence<Reference<deployment::XPackage> > const & sameIdExtensions) { OSL_ASSERT(sameIdExtensions.getLength() == 3); - if (!sameIdExtensions[0].is() && !sameIdExtensions[1].is() && sameIdExtensions[2].is()) - return true; - else - return false; + return !sameIdExtensions[0].is() && !sameIdExtensions[1].is() && sameIdExtensions[2].is(); } + /** Returns true if the list of extensions are bundled extensions and there are no other extensions with the same identifier in the shared or user repository. If extensionList is NULL, then it is checked if there are only bundled extensions. |