summaryrefslogtreecommitdiff
path: root/jvmfwk/plugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-17 18:48:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:49 +0100
commit9c0cb4556283fdbe8e5bf9c0a7bc56945d2279e7 (patch)
tree335be8dbf80b24fd8699c254c2d16733965c9f07 /jvmfwk/plugins
parent62edaa0f8fd95a7f0c980d2bd36535f173a99003 (diff)
Some more loplugin:cstylecast: jvmfwk
Change-Id: Iaa1be4b338b75c340555eb4bf0760cadca16713f
Diffstat (limited to 'jvmfwk/plugins')
-rw-r--r--jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx2
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
index 806fcf94c69d..8b92e158a68a 100644
--- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
+++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
@@ -111,7 +111,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
OString getLD_LIBRARY_PATH(const rtl::ByteSequence & vendorData)
{
- const sal_Unicode* chars = (sal_Unicode*) vendorData.getConstArray();
+ const sal_Unicode* chars = reinterpret_cast<sal_Unicode const *>(vendorData.getConstArray());
sal_Int32 len = vendorData.getLength();
OUString sData(chars, len / 2);
//the runtime lib is on the first line
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
index a73a0072af78..dde0d760f59b 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
@@ -169,7 +169,7 @@ JavaInfo* createJavaInfo(const rtl::Reference<VendorBase> & info)
}
OUString sVendorData = buf.makeStringAndClear();
- rtl::ByteSequence byteSeq( (sal_Int8*) sVendorData.pData->buffer,
+ rtl::ByteSequence byteSeq( reinterpret_cast<sal_Int8*>(sVendorData.pData->buffer),
sVendorData.getLength() * sizeof(sal_Unicode));
pInfo->arVendorData = byteSeq.get();
rtl_byte_sequence_acquire(pInfo->arVendorData);
@@ -179,7 +179,7 @@ JavaInfo* createJavaInfo(const rtl::Reference<VendorBase> & info)
OUString getRuntimeLib(const rtl::ByteSequence & data)
{
- const sal_Unicode* chars = (sal_Unicode*) data.getConstArray();
+ const sal_Unicode* chars = reinterpret_cast<sal_Unicode const *>(data.getConstArray());
sal_Int32 len = data.getLength();
OUString sData(chars, len / 2);
//the runtime lib is on the first line
@@ -694,7 +694,7 @@ javaPluginError jfw_plugin_startJavaVirtualMachine(
OUString sSymbolCreateJava("JNI_CreateJavaVM");
JNI_CreateVM_Type * pCreateJavaVM =
- (JNI_CreateVM_Type *)moduleRt.getFunctionSymbol(sSymbolCreateJava);
+ reinterpret_cast<JNI_CreateVM_Type *>(moduleRt.getFunctionSymbol(sSymbolCreateJava));
if (!pCreateJavaVM)
{
OSL_ASSERT(false);