-Werror,-Wsign-compare (clang-cl)

Change-Id: I7a3f17e84bbf44a472838ab20b4490f1ef3654d6
This commit is contained in:
Stephan Bergmann
2016-01-26 17:05:02 +01:00
parent 29c3ba5e7b
commit 377fa55b49
2 changed files with 5 additions and 3 deletions

View File

@@ -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] )
{

View File

@@ -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 );