diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:15:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:37 +0200 |
commit | e7f330fa4aad63873a552e84bfdbf6452832b007 (patch) | |
tree | c958a52facac44e06eec566f80f1df9ee9260fb2 /cppu/source/threadpool | |
parent | 15e410e5afac989e423d6ce158ef65288c67ee7b (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I47acc5590a935c7f9089231efbb1319664942f16
Diffstat (limited to 'cppu/source/threadpool')
-rw-r--r-- | cppu/source/threadpool/current.cxx | 24 | ||||
-rw-r--r-- | cppu/source/threadpool/threadident.cxx | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/cppu/source/threadpool/current.cxx b/cppu/source/threadpool/current.cxx index 6eaed4dec760..eafb0bbb0705 100644 --- a/cppu/source/threadpool/current.cxx +++ b/cppu/source/threadpool/current.cxx @@ -73,15 +73,15 @@ static typelib_InterfaceTypeDescription * get_type_XCurrentContext() aParameters[0].pParamName = sParamName0.pData; aParameters[0].eTypeClass = typelib_TypeClass_STRING; aParameters[0].pTypeName = sParamType0.pData; - aParameters[0].bIn = sal_True; - aParameters[0].bOut = sal_False; + aParameters[0].bIn = true; + aParameters[0].bOut = false; rtl_uString * pExceptions[1]; OUString sExceptionName0("com.sun.star.uno.RuntimeException"); pExceptions[0] = sExceptionName0.pData; OUString sReturnType0("any"); typelib_typedescription_newInterfaceMethod( &pMethod, - 3, sal_False, + 3, false, sMethodName0.pData, typelib_TypeClass_ANY, sReturnType0.pData, 1, aParameters, 1, pExceptions ); @@ -212,15 +212,15 @@ extern "C" sal_Bool SAL_CALL uno_setCurrentContext( else { (*pEnv->release)( pEnv ); - return sal_False; + return false; } } else { - return sal_False; + return false; } } - return sal_True; + return true; } extern "C" sal_Bool SAL_CALL uno_getCurrentContext( @@ -238,11 +238,11 @@ extern "C" sal_Bool SAL_CALL uno_getCurrentContext( target_env = Environment(rtl::OUString(pEnvTypeName), pEnvContext); OSL_ASSERT( target_env.is() ); if (! target_env.is()) - return sal_False; + return false; uno_ExtEnvironment * pEnv = target_env.get()->pExtEnv; OSL_ASSERT( nullptr != pEnv ); if (nullptr == pEnv) - return sal_False; + return false; (*pEnv->releaseInterface)( pEnv, *ppCurrentContext ); *ppCurrentContext = nullptr; @@ -250,24 +250,24 @@ extern "C" sal_Bool SAL_CALL uno_getCurrentContext( // case: null-ref if (nullptr == pId->pCurrentContext) - return sal_True; + return true; if (! target_env.is()) { target_env = Environment(rtl::OUString(pEnvTypeName), pEnvContext); OSL_ASSERT( target_env.is() ); if (! target_env.is()) - return sal_False; + return false; } Mapping mapping(&pId->pCurrentContextEnv->aBase, target_env.get()); OSL_ASSERT( mapping.is() ); if (! mapping.is()) - return sal_False; + return false; mapping.mapInterface(ppCurrentContext, pId->pCurrentContext, ::cppu::get_type_XCurrentContext() ); - return sal_True; + return true; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppu/source/threadpool/threadident.cxx b/cppu/source/threadpool/threadident.cxx index 87daa491342c..a9b1dcefd623 100644 --- a/cppu/source/threadpool/threadident.cxx +++ b/cppu/source/threadpool/threadident.cxx @@ -117,11 +117,11 @@ extern "C" sal_Bool SAL_CALL uno_bindIdToCurrentThread( sal_Sequence *pThreadId } else { - return sal_False; + return false; } } - return sal_True; + return true; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |