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 | |
parent | da50c790a74af391cd46e20dbb457e975894b9cf (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Ideaafe1920c9e27de7ed9e9f4fe9fc7cb8c3b6aa
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx | 4 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx | 4 | ||||
-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 |
5 files changed, 10 insertions, 10 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx index 46f8d0f03111..44e773bc7cc5 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx @@ -314,8 +314,8 @@ typelib_TypeClass cpp_vtable_call( // is SET method typelib_MethodParameter aParam; aParam.pTypeRef = pAttrTypeRef; - aParam.bIn = sal_True; - aParam.bOut = sal_False; + aParam.bIn = true; + aParam.bOut = false; eRet = cpp2uno_call( pCppI, aMemberDescr.get(), nullptr, // indicates void return diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx index 1f85882d2db2..3a99aa9c71f4 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx @@ -356,8 +356,8 @@ void unoInterfaceProxyDispatch( typelib_MethodParameter aParam; aParam.pTypeRef = reinterpret_cast<typelib_InterfaceAttributeTypeDescription const *>(pMemberDescr)->pAttributeTypeRef; - aParam.bIn = sal_True; - aParam.bOut = sal_False; + aParam.bIn = true; + aParam.bOut = false; typelib_TypeDescriptionReference * pReturnTypeRef = nullptr; OUString aVoidName("void"); 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, |