diff options
author | David Tardon <dtardon@redhat.com> | 2010-11-20 13:38:48 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-11-20 16:59:36 +0100 |
commit | 45e36ce06f9f4c35578fc7122c6d91ff0d38b112 (patch) | |
tree | 9a3f6bf68c5c7e9c78f9535e256b62a19fa82dd4 | |
parent | 4d0ed3354adc39c895b95aadb36fdb801db56b83 (diff) |
simplify bool expression
-rw-r--r-- | desktop/source/deployment/registry/dp_backenddb.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx index 4c4d6354b0ac..bafeb18a7192 100644 --- a/desktop/source/deployment/registry/dp_backenddb.cxx +++ b/desktop/source/deployment/registry/dp_backenddb.cxx @@ -625,11 +625,8 @@ bool RegisteredDb::getEntry(::rtl::OUString const & url) Reference<css::xml::xpath::XXPathAPI> xpathApi = getXPathAPI(); Reference<css::xml::dom::XNode> aNode = xpathApi->selectSingleNode(root, sExpression); - if (!aNode.is()) - { - return false; - } - return true; + + return aNode.is(); } catch(css::uno::Exception &) { |