summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/registry/dp_backenddb.cxx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2010-11-20 13:38:48 +0100
committerDavid Tardon <dtardon@redhat.com>2010-11-20 16:59:36 +0100
commit45e36ce06f9f4c35578fc7122c6d91ff0d38b112 (patch)
tree9a3f6bf68c5c7e9c78f9535e256b62a19fa82dd4 /desktop/source/deployment/registry/dp_backenddb.cxx
parent4d0ed3354adc39c895b95aadb36fdb801db56b83 (diff)
simplify bool expression
Diffstat (limited to 'desktop/source/deployment/registry/dp_backenddb.cxx')
-rw-r--r--desktop/source/deployment/registry/dp_backenddb.cxx7
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 &)
{