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

Change-Id: I81dc70639a866368b9a6c69afffdfd42464e9138
This commit is contained in:
Stephan Bergmann 2015-03-26 15:29:31 +01:00
parent fbeb21e45b
commit d3b69645d8

View file

@ -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