summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-13 12:43:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-13 15:20:58 +0200
commit3697b87b70c69e17e1d0398e0192a11dab179fe3 (patch)
treea498cce1f1351e6f92385aa9245c66c0724b6430 /jvmfwk
parent9bc95521aaa35b533894b3934519acdbd7a47815 (diff)
use more OUString::operator== in forms..sal
Change-Id: I70d7e50f8c1e019524ccad915f0cca912c5035dc Reviewed-on: https://gerrit.libreoffice.org/39899 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx12
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx8
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/util.cxx2
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/util.hxx2
4 files changed, 12 insertions, 12 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx b/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
index 32203618b8cd..dee43b6b6d67 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
@@ -115,22 +115,22 @@ bool GnuInfo::initialize(vector<pair<OUString, OUString> > props)
typedef vector<pair<OUString, OUString> >::const_iterator it_prop;
for (it_prop i = props.begin(); i != props.end(); ++i)
{
- if(! bVendor && sVendorProperty.equals(i->first))
+ if(! bVendor && sVendorProperty == i->first)
{
m_sVendor = i->second;
bVendor = true;
}
- else if (!bVersion && sVersionProperty.equals(i->first))
+ else if (!bVersion && sVersionProperty == i->first)
{
m_sVersion = i->second;
bVersion = true;
}
- else if (!bHome && sGNUHomeProperty.equals(i->first))
+ else if (!bHome && sGNUHomeProperty == i->first)
{
m_sHome = i->second;
bHome = true;
}
- else if (!bJavaHome && sJavaHomeProperty.equals(i->first))
+ else if (!bJavaHome && sJavaHomeProperty == i->first)
{
OUString fileURL;
if (osl_getFileURLFromSystemPath(i->second.pData,& fileURL.pData) ==
@@ -146,13 +146,13 @@ bool GnuInfo::initialize(vector<pair<OUString, OUString> > props)
}
}
}
- else if (!bJavaLibraryPath && sJavaLibraryPathProperty.equals(i->first))
+ else if (!bJavaLibraryPath && sJavaLibraryPathProperty == i->first)
{
sal_Int32 nIndex = 0;
osl_getFileURLFromSystemPath(i->second.getToken(0, ':', nIndex).pData, &sJavaLibraryPath.pData);
bJavaLibraryPath = true;
}
- else if (!bAccess && sAccessProperty.equals(i->first))
+ else if (!bAccess && sAccessProperty == i->first)
{
if (!i->second.isEmpty())
{
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
index c95849e77ac2..40ce22e78ea9 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
@@ -315,7 +315,7 @@ javaPluginError jfw_plugin_getAllJavaInfos(
{
const rtl::Reference<VendorBase>& cur = *i;
- if (!sVendor.equals(cur->getVendor()))
+ if (sVendor != cur->getVendor())
continue;
javaPluginError err = checkJavaVersionRequirements(
@@ -362,7 +362,7 @@ javaPluginError jfw_plugin_getJavaInfoByPath(
return javaPluginError::NoJre;
//Check if the detected JRE matches the version requirements
- if (!sVendor.equals(aVendorInfo->getVendor()))
+ if (sVendor != aVendorInfo->getVendor())
return javaPluginError::NoJre;
javaPluginError errorcode = checkJavaVersionRequirements(
aVendorInfo, sMinVersion, sMaxVersion, arExcludeList);
@@ -394,7 +394,7 @@ javaPluginError jfw_plugin_getJavaInfoFromJavaHome(
const OUString& vendor = vendorInfo->first;
jfw::VersionInfo versionInfo = vendorInfo->second;
- if (vendor.equals(infoJavaHome[0]->getVendor()))
+ if (vendor == infoJavaHome[0]->getVendor())
{
javaPluginError errorcode = checkJavaVersionRequirements(
infoJavaHome[0],
@@ -436,7 +436,7 @@ javaPluginError jfw_plugin_getJavaInfosFromPath(
const OUString& vendor = vendorInfo->first;
jfw::VersionInfo const & versionInfo = vendorInfo->second;
- if (vendor.equals(currentInfo->getVendor()))
+ if (vendor == currentInfo->getVendor())
{
javaPluginError errorcode = checkJavaVersionRequirements(
currentInfo,
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index ceffbfea6930..d53c6eecfc3b 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -1040,7 +1040,7 @@ rtl::Reference<VendorBase> getJREInfoByPath(
{
OUString sNameMap(gVendorMap[c].sVendorName, strlen(gVendorMap[c].sVendorName),
RTL_TEXTENCODING_ASCII_US);
- if (sNameMap.equals(sVendorName))
+ if (sNameMap == sVendorName)
{
ret = createInstance(gVendorMap[c].createFunc, props);
break;
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.hxx b/jvmfwk/plugins/sunmajor/pluginlib/util.hxx
index 74497337be90..413e6aa771f9 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.hxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.hxx
@@ -69,7 +69,7 @@ struct InfoFindSame
bool operator () (const rtl::Reference<VendorBase> & aVendorInfo)
{
- return aVendorInfo->getHome().equals(sJava);
+ return aVendorInfo->getHome() == sJava;
}
};