Kaydet (Commit) d3b69645 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

const_cast: convert some C-style casts and remove some redundant ones

Change-Id: I81dc70639a866368b9a6c69afffdfd42464e9138
üst fbeb21e4
......@@ -313,12 +313,12 @@ javaFrameworkError SAL_CALL jfw_startVM(
return JFW_E_ERROR;
//The first argument is the classpath
arOpt[0].optionString= (char*) sUserClassPath.getStr();
arOpt[0].optionString= const_cast<char*>(sUserClassPath.getStr());
arOpt[0].extraInfo = NULL;
// Set a flag that this JVM has been created via the JNI Invocation API
// (used, for example, by UNO remote bridges to share a common thread pool
// factory among Java and native bridge implementations):
arOpt[1].optionString = (char *) "-Dorg.openoffice.native=";
arOpt[1].optionString = const_cast<char *>("-Dorg.openoffice.native=");
arOpt[1].extraInfo = 0;
//add the options set by options dialog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment