diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:15:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:15:18 +0100 |
commit | d76f636cc41df3618962aac44ef989f13d4680b8 (patch) | |
tree | c3f85dfe49409139a6ab34ae5c2950258d508b20 /stoc/source/javavm/javavm.cxx | |
parent | 0b0a6e9b4d99a647d12b25f608150bf652d3f9da (diff) |
More loplugin:cstylecast: stoc
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I2a9c00b7c0427a99597a7aead6d77d370a507da8
Diffstat (limited to 'stoc/source/javavm/javavm.cxx')
-rw-r--r-- | stoc/source/javavm/javavm.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index b03834ea46bc..6a6652390683 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -490,7 +490,7 @@ void getJavaPropsFromSafetySettings( "VirtualMachine/Security"); if( key_CheckSecurity.is()) { - bool val = (bool) key_CheckSecurity->getLongValue(); + bool val = static_cast<bool>(key_CheckSecurity->getLongValue()); OUString sProperty("stardiv.security.disableSecurity="); if( val) sProperty= sProperty + "false"; @@ -1305,7 +1305,7 @@ void JavaVirtualMachine::registerConfigChangesListener() css::uno::Sequence<css::uno::Any> aArguments(comphelper::InitAnyPropertySequence( { {"nodepath", css::uno::Any(OUString("org.openoffice.Inet/Settings"))}, - {"depth", css::uno::Any((sal_Int32)-1)} + {"depth", css::uno::Any(sal_Int32(-1))} })); m_xInetConfiguration.set( xConfigProvider->createInstanceWithArguments( @@ -1320,7 +1320,7 @@ void JavaVirtualMachine::registerConfigChangesListener() css::uno::Sequence<css::uno::Any> aArguments2(comphelper::InitAnyPropertySequence( { {"nodepath", css::uno::Any(OUString("org.openoffice.Office.Java/VirtualMachine"))}, - {"depth", css::uno::Any((sal_Int32)-1)} // depth: -1 means unlimited + {"depth", css::uno::Any(sal_Int32(-1))} // depth: -1 means unlimited })); m_xJavaConfiguration.set( xConfigProvider->createInstanceWithArguments( |