summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:29:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:32 +0100
commitd3b69645d80a97f52a2e4a5dd5f9e321ffe5c7d6 (patch)
tree6d7c05cd079040ea6bb4a1239c560675ea7e1135 /jvmfwk
parentfbeb21e45b48102a145900de173213bebaa3c9f7 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I81dc70639a866368b9a6c69afffdfd42464e9138
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/source/framework.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/jvmfwk/source/framework.cxx b/jvmfwk/source/framework.cxx
index 314e92fb26b1..1e1ba9adb6dd 100644
--- a/jvmfwk/source/framework.cxx
+++ b/jvmfwk/source/framework.cxx
@@ -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