diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:14:48 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:36 +0200 |
commit | 9a978d62ad4e0925247931857c9b4a8f1750a106 (patch) | |
tree | a47f975913ee7b091d650bf9e1a86620ecaeab77 /bridges/source/jni_uno | |
parent | da50c790a74af391cd46e20dbb457e975894b9cf (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Ideaafe1920c9e27de7ed9e9f4fe9fc7cb8c3b6aa
Diffstat (limited to 'bridges/source/jni_uno')
-rw-r--r-- | bridges/source/jni_uno/jni_bridge.cxx | 4 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_java2uno.cxx | 4 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_uno2java.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/bridges/source/jni_uno/jni_bridge.cxx b/bridges/source/jni_uno/jni_bridge.cxx index ba4a939888db..ad744b87a869 100644 --- a/bridges/source/jni_uno/jni_bridge.cxx +++ b/bridges/source/jni_uno/jni_bridge.cxx @@ -523,8 +523,8 @@ SAL_DLLPUBLIC_EXPORT void SAL_CALL uno_ext_getMapping( *ppMapping = nullptr; } - static_assert(int(JNI_FALSE) == int(sal_False), "must be equal"); - static_assert(int(JNI_TRUE) == int(sal_True), "must be equal"); + static_assert(int(JNI_FALSE) == int(false), "must be equal"); + static_assert(int(JNI_TRUE) == int(true), "must be equal"); static_assert(sizeof (jboolean) == sizeof (sal_Bool), "must be the same size"); static_assert(sizeof (jchar) == sizeof (sal_Unicode), "must be the same size"); static_assert(sizeof (jdouble) == sizeof (double), "must be the same size"); diff --git a/bridges/source/jni_uno/jni_java2uno.cxx b/bridges/source/jni_uno/jni_java2uno.cxx index 5a3c6d54f4ed..079695405d56 100644 --- a/bridges/source/jni_uno/jni_java2uno.cxx +++ b/bridges/source/jni_uno/jni_java2uno.cxx @@ -565,8 +565,8 @@ JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_dispatch_1call( { typelib_MethodParameter param; param.pTypeRef = attr_td->pAttributeTypeRef; - param.bIn = sal_True; - param.bOut = sal_False; + param.bIn = true; + param.bOut = false; return bridge->call_uno( jni, pUnoI, member_td.get(), jni_info->m_void_type.getTypeLibType(), diff --git a/bridges/source/jni_uno/jni_uno2java.cxx b/bridges/source/jni_uno/jni_uno2java.cxx index 262893363aeb..80667e98fe10 100644 --- a/bridges/source/jni_uno/jni_uno2java.cxx +++ b/bridges/source/jni_uno/jni_uno2java.cxx @@ -610,8 +610,8 @@ void SAL_CALL UNO_proxy_dispatch( { typelib_MethodParameter param; param.pTypeRef = attrib_td->pAttributeTypeRef; - param.bIn = sal_True; - param.bOut = sal_False; + param.bIn = true; + param.bOut = false; bridge->call_java( that->m_javaI, iface_td, |