From a975225678c00272fc6e2ee2c85e6fe00a2204f1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 24 Apr 2017 09:23:15 +0200 Subject: clang-tidy readability-simplify-boolean-expr in hwpfilter..lotuswordpro Change-Id: I945d3fe6af5f88937b341dfc3696bf1d36344862 Reviewed-on: https://gerrit.libreoffice.org/36874 Tested-by: Jenkins Reviewed-by: Noel Grandin --- jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx | 5 +---- jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx | 9 ++------- 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'jvmfwk/plugins') diff --git a/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx b/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx index 9c431146c777..1750696ab018 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx @@ -283,10 +283,7 @@ bool GnuInfo::initialize(vector > props) break; } } - if (!bLdPath) - return false; - - return true; + return bLdPath; } int GnuInfo::compareVersions(const OUString&) const diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx index 948c99dfe876..1f7423045bc1 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx @@ -175,10 +175,7 @@ bool VendorBase::initialize(vector > props) break; } } - if (!bLdPath) - return false; - - return true; + return bLdPath; } const OUString & VendorBase::getVendor() const @@ -228,9 +225,7 @@ bool VendorBase::supportsAccessibility() const bool VendorBase::needsRestart() const { - if (!getLibraryPath().isEmpty()) - return true; - return false; + return !getLibraryPath().isEmpty(); } } -- cgit