[Libreoffice-commits] core.git: jvmfwk/plugins
Stephan Bergmann
sbergman at redhat.com
Tue Jul 1 03:27:26 PDT 2014
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 3818cc53291008f0ad2ebe6f898e2c58d6974b09
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jul 1 12:26:51 2014 +0200
simplify
Change-Id: I1f44dd938bd0033ad4a5b6af4d24d1ba3e76d852
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
index 217c6ce..d32beff 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
@@ -635,10 +635,9 @@ javaPluginError jfw_plugin_startJavaVirtualMachine(
#if defined UNX && !defined MACOSX
//Setting the JAVA_HOME is needed for awt
- OUString javaHome("JAVA_HOME");
OUString sPathLocation;
osl_getSystemPathFromFileURL(pInfo->sLocation, & sPathLocation.pData);
- osl_setEnvironment(javaHome.pData, sPathLocation.pData);
+ osl_setEnvironment(OUString("JAVA_HOME").pData, sPathLocation.pData);
#endif
typedef jint JNICALL JNI_CreateVM_Type(JavaVM **, JNIEnv **, void *);
More information about the Libreoffice-commits
mailing list