loplugin:simplifybool

Change-Id: Ic38df50884b370417ed62b65ac7f90a13faea230
This commit is contained in:
Stephan Bergmann 2015-07-16 13:57:53 +02:00
parent 6003732e3b
commit eac10bd2db

View File

@ -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: