diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-19 17:45:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-20 10:45:48 +0100 |
commit | fc528a468061e165ee29f0ca450245331da3ef93 (patch) | |
tree | 150188c8939379c0134cc827ad94e2225cb8d4a8 /jvmfwk | |
parent | 0b87fdcad55d1927241073bc15c174168c5e0c1d (diff) |
More loplugin:cstylecast on macOS
Automatic rewrite (of loplugin:cstylecast and loplugin:unnecessaryparen) after
cab0427cadddb3aaf1349c66f2fa13a4234ba4b2 "Enable loplugin:cstylecast for some
more cases" and a409d32e7f6fc09e041079d6dbc3c927497adfed "More
loplugin:cstylecast"
Change-Id: Iff4877e8a42804c952c48c13332caf0a83c92870
Reviewed-on: https://gerrit.libreoffice.org/48216
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'jvmfwk')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/util_cocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util_cocoa.mm b/jvmfwk/plugins/sunmajor/pluginlib/util_cocoa.mm index 5755d4c44c50..5a5d7303a18a 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/util_cocoa.mm +++ b/jvmfwk/plugins/sunmajor/pluginlib/util_cocoa.mm @@ -85,7 +85,7 @@ bool JvmfwkUtil_isLoadableJVM( OUString const & aURL ) { if ( [pJVMCapabilities isKindOfClass:[NSMutableArray class]] ) { - [(NSMutableArray *)pJVMCapabilities addObject:@"JNI"]; + [static_cast<NSMutableArray *>(pJVMCapabilities) addObject:@"JNI"]; bRet = true; } else if ( [pJavaVM isKindOfClass:[NSMutableDictionary class]] ) @@ -94,7 +94,7 @@ bool JvmfwkUtil_isLoadableJVM( OUString const & aURL ) if ( pNewJVMCapabilities ) { [pNewJVMCapabilities addObject:@"JNI"]; - [(NSMutableDictionary *)pJavaVM setObject:pNewJVMCapabilities forKey:@"JVMCapabilities"]; + [static_cast<NSMutableDictionary *>(pJavaVM) setObject:pNewJVMCapabilities forKey:@"JVMCapabilities"]; bRet = true; } } |