summaryrefslogtreecommitdiff
path: root/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'jvmfwk/plugins/sunmajor/pluginlib/util.cxx')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/util.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index b1d75f7e6c86..b1c5eaf286c4 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -403,7 +403,7 @@ bool getJavaProps(const OUString & exePath,
//prepare the arguments
sal_Int32 cArgs = 3;
- OUString arg1 = OUString("-classpath");// + sClassPath;
+ OUString arg1 = "-classpath";// + sClassPath;
OUString arg2 = sClassPath;
OUString arg3("JREProperties");
OUString arg4 = "noaccessibility";
@@ -744,7 +744,7 @@ bool getJREInfoFromBinPath(
&& (index + sMapPath.getLength() == sBinPath.getLength())
&& sBinPath[index - 1] == '/')
{
- sHome = OUString(sBinPath.getStr(), index - 1);
+ sHome = sBinPath.copy(index - 1);
}
}
if (!sHome.isEmpty())