summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-16 13:57:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-16 14:00:23 +0200
commiteac10bd2db973365cbbfd5379a64c5e02e7527cc (patch)
tree164d13b3244f51f7279db5c19576498de92a259e /unoxml
parent6003732e3b7d58c60a36634c56673ec60cbe8180 (diff)
loplugin:simplifybool
Change-Id: Ic38df50884b370417ed62b65ac7f90a13faea230
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index b993c1fb400d..aefdc8d6c975 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -1489,8 +1489,7 @@ throw (uno::RuntimeException, rdf::QueryException, rdf::RepositoryException, std
"librdf_Repository::queryAsk: "
"query result is null or not boolean", *this);
}
- return librdf_query_results_get_boolean(pResults.get())
- ? sal_True : sal_False;
+ return bool(librdf_query_results_get_boolean(pResults.get()));
}
// css::rdf::XDocumentRepository: