Skip to content

Commit

Permalink
loplugin:simplifybool
Browse files Browse the repository at this point in the history
Change-Id: Ic38df50884b370417ed62b65ac7f90a13faea230
  • Loading branch information
stbergmann committed Jul 16, 2015
1 parent 6003732 commit eac10bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unoxml/source/rdf/librdf_repository.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eac10bd

Please sign in to comment.