diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-26 14:37:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-11-26 16:45:19 +0100 |
commit | 9f90050aa17a76adef94b4ba2568db2da1bd1b9b (patch) | |
tree | 059ed03f013271da708107f2a3782e331ce44288 /winaccessibility | |
parent | fa42338091ecd96b637ea52984c2642b89966f44 (diff) |
loplugin:consttobool (clang-cl)
Change-Id: I81fea38cd737a8be74e6ece333ca37cc434a1c33
Reviewed-on: https://gerrit.libreoffice.org/83765
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'winaccessibility')
-rw-r--r-- | winaccessibility/source/UAccCOM/MAccessible.cxx | 18 | ||||
-rw-r--r-- | winaccessibility/source/UAccCOM/acccommon.h | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx index 7afe11a5bf32..5ffc93106c79 100644 --- a/winaccessibility/source/UAccCOM/MAccessible.cxx +++ b/winaccessibility/source/UAccCOM/MAccessible.cxx @@ -145,19 +145,19 @@ using namespace com::sun::star::accessibility::AccessibleRole; #define QUERYXINTERFACE(ainterface) \ { \ if(pXAcc == nullptr) \ - return FALSE; \ + return false; \ pRContext = pXAcc->getAccessibleContext(); \ if( !pRContext.is() ) \ { \ - return FALSE; \ + return false; \ } \ Reference<X##ainterface> pRXI(pRContext,UNO_QUERY);\ if( !pRXI.is() ) \ { \ - return FALSE; \ + return false; \ } \ *ppXI = pRXI.get(); \ - return TRUE; \ + return true; \ } #define ISDESTROY() \ @@ -178,7 +178,7 @@ m_pIParent(nullptr), m_dChildID(0x00), m_dFocusChildID(UACC_NO_FOCUS), m_hwnd(nullptr), -m_isDestroy(FALSE), +m_isDestroy(false), m_bRequiresSave(FALSE) { m_sLocation.m_dLeft=0; @@ -2021,14 +2021,14 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CMAccessible:: get_groupPosition(long __RPC_FA } int level = 0; - bool isFound = FALSE; + bool isFound = false; while( pParentAcc.is() && !isFound) { level++; pRParentContext = pParentAcc->getAccessibleContext(); Role = pRParentContext->getAccessibleRole(); if( (Role == TREE) || (Role == LIST) ) - isFound = TRUE; + isFound = true; pParentAcc = pRParentContext->getAccessibleParent(); } @@ -2539,7 +2539,7 @@ bool CMAccessible::GetXInterfaceFromXAccessible(XAccessible* pXAcc, XInterface** break; } - return FALSE; + return false; } template<typename T> static HRESULT @@ -2650,7 +2650,7 @@ CMAccessible::get_IAccessibleFromXAccessible(XAccessible * pXAcc, IAccessible ** { return FALSE; } - bool isGet = FALSE; + bool isGet = false; if(g_pAgent) isGet = g_pAgent->GetIAccessibleFromXAccessible(pXAcc, ppIA); diff --git a/winaccessibility/source/UAccCOM/acccommon.h b/winaccessibility/source/UAccCOM/acccommon.h index 7e338e05a3bf..f178ad3f32da 100644 --- a/winaccessibility/source/UAccCOM/acccommon.h +++ b/winaccessibility/source/UAccCOM/acccommon.h @@ -26,22 +26,22 @@ struct ltComp bool operator()(REFGUID rguid1, REFGUID rguid2) const { if(reinterpret_cast<LONG const *>(&rguid1)[0] < reinterpret_cast<LONG const *>(&rguid2)[0]) - return TRUE; + return true; else if(reinterpret_cast<LONG const *>(&rguid1)[0] > reinterpret_cast<LONG const *>(&rguid2)[0]) - return FALSE; + return false; if(reinterpret_cast<LONG const *>(&rguid1)[1] < reinterpret_cast<LONG const *>(&rguid2)[1]) - return TRUE; + return true; else if(reinterpret_cast<LONG const *>(&rguid1)[1] > reinterpret_cast<LONG const *>(&rguid2)[1]) - return FALSE; + return false; if(reinterpret_cast<LONG const *>(&rguid1)[2] < reinterpret_cast<LONG const *>(&rguid2)[2]) - return TRUE; + return true; else if(reinterpret_cast<LONG const *>(&rguid1)[2] > reinterpret_cast<LONG const *>(&rguid2)[2]) - return FALSE; + return false; if(reinterpret_cast<LONG const *>(&rguid1)[3] < reinterpret_cast<LONG const *>(&rguid2)[3]) - return TRUE; + return true; else if(reinterpret_cast<LONG const *>(&rguid1)[3] > reinterpret_cast<LONG const *>(&rguid2)[3]) - return FALSE; - return FALSE; + return false; + return false; } }; |