diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 11:46:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 13:24:30 +0100 |
commit | e7f7b1d09cead90c2fee075b5bfabf0c71cec28e (patch) | |
tree | c1aa8e9500e6ef0b5d71ff44f4971abdbb34dce1 /jvmfwk | |
parent | d2c2ab1cb6e974195ccbd7f96234f8660621b06f (diff) |
bool improvements
Change-Id: Ic4572480d48e341c8fa611a3283efc351f530eb5
Diffstat (limited to 'jvmfwk')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 2 | ||||
-rw-r--r-- | jvmfwk/source/framework.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx index b1c5eaf286c4..238842d0578f 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx @@ -1032,7 +1032,7 @@ rtl::Reference<VendorBase> getJREInfoByPath( } } } - if (ret.is() == false) + if (!ret.is()) vecBadPaths.push_back(sFilePath); else { diff --git a/jvmfwk/source/framework.cxx b/jvmfwk/source/framework.cxx index c138f7ecbb63..688864e48819 100644 --- a/jvmfwk/source/framework.cxx +++ b/jvmfwk/source/framework.cxx @@ -302,7 +302,7 @@ javaFrameworkError SAL_CALL jfw_startVM( if (mode == jfw::JFW_MODE_APPLICATION) { const jfw::MergedSettings settings; - if (sal_False == settings.getEnabled()) + if (!settings.getEnabled()) return JFW_E_JAVA_DISABLED; aInfo.attach(settings.createJavaInfo()); //check if a Java has ever been selected @@ -949,7 +949,7 @@ javaFrameworkError SAL_CALL jfw_setEnabled(sal_Bool bEnabled) //check if Enabled is false; const jfw::MergedSettings settings; - if (settings.getEnabled() == sal_False) + if (!settings.getEnabled()) g_bEnabledSwitchedOn = true; } jfw::NodeJava node(jfw::NodeJava::USER); |