diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-01-26 17:05:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-26 17:06:44 +0100 |
commit | 377fa55b49858d93c1644c6e003fc39c48867dbb (patch) | |
tree | df8e83d354fcfb361a3f4a3fa725ccc6366492c9 /winaccessibility | |
parent | 29c3ba5e7b1bd604d1cbf7a1ea2912570ddec40a (diff) |
-Werror,-Wsign-compare (clang-cl)
Change-Id: I7a3f17e84bbf44a472838ab20b4490f1ef3654d6
Diffstat (limited to 'winaccessibility')
-rw-r--r-- | winaccessibility/source/UAccCOM/MAccessible.cxx | 4 | ||||
-rw-r--r-- | winaccessibility/source/service/AccObject.cxx | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx index 74a6518c8c01..ce2a303b6142 100644 --- a/winaccessibility/source/UAccCOM/MAccessible.cxx +++ b/winaccessibility/source/UAccCOM/MAccessible.cxx @@ -22,6 +22,8 @@ #include "MAccessible.h" #include <algorithm> +#include <cstddef> + #include "AccAction.h" #include "AccRelation.h" #include "AccComponent.h" @@ -3063,7 +3065,7 @@ STDMETHODIMP CMAccessible:: get_states(AccessibleStates __RPC_FAR *states ) *states = 0x0; for( int i = 0; i < count; i++ ) { - for( int j = 0; j < SAL_N_ELEMENTS(UNO_STATES); j++ ) + for( std::size_t j = 0; j < SAL_N_ELEMENTS(UNO_STATES); j++ ) { if( pStates[i] == UNO_STATES[j] ) { diff --git a/winaccessibility/source/service/AccObject.cxx b/winaccessibility/source/service/AccObject.cxx index 8b60ddf412fd..47118d59c01f 100644 --- a/winaccessibility/source/service/AccObject.cxx +++ b/winaccessibility/source/service/AccObject.cxx @@ -800,8 +800,8 @@ void AccObject::UpdateRole() XAccessibleContext* pContext = m_xAccContextRef.get(); m_pIMAcc->Put_XAccRole( ROLE_SYSTEM_WINDOW ); - short iRoleIndex = pContext->getAccessibleRole(); - if ((0 <= iRoleIndex) && (iRoleIndex < SAL_N_ELEMENTS(ROLE_TABLE))) + sal_Int16 iRoleIndex = pContext->getAccessibleRole(); + if ((0 <= iRoleIndex) && (sal_uInt16(iRoleIndex) < SAL_N_ELEMENTS(ROLE_TABLE))) { short iIA2Role = ROLE_TABLE[iRoleIndex][1] ; m_pIMAcc->Put_XAccRole( iIA2Role ); |