const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I81dc70639a866368b9a6c69afffdfd42464e9138
This commit is contained in:
parent
fbeb21e45b
commit
d3b69645d8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue