From 61576dbeda71add6bd36da628bd3b626aa823a77 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 17 Sep 2022 12:49:44 +0200 Subject: loplugin:loopvartoosmall (clang-cl) Change-Id: I8925e28d46f1ed983581b539cfbe6a01c034e0ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140098 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- winaccessibility/source/UAccCOM/AccTable.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winaccessibility') diff --git a/winaccessibility/source/UAccCOM/AccTable.cxx b/winaccessibility/source/UAccCOM/AccTable.cxx index 16eea5bb533d..472f0d8f23ca 100644 --- a/winaccessibility/source/UAccCOM/AccTable.cxx +++ b/winaccessibility/source/UAccCOM/AccTable.cxx @@ -1040,7 +1040,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTable::get_selectedChildren(long, long **c *nChildren = nChildCount; *children = static_cast(CoTaskMemAlloc(nChildCount * sizeof(long))); - for( long i = 0; i< nChildCount; i++) + for( sal_Int64 i = 0; i< nChildCount; i++) { Reference pRAcc = pRSelection->getSelectedAccessibleChild(i); if(pRAcc.is()) @@ -1102,7 +1102,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTable::get_selectedCells(IUnknown * * * ce *cells = static_cast(CoTaskMemAlloc(nSelected * sizeof(IUnknown*))); - for (long i = 0; i < nSelected; i++) + for (sal_Int64 i = 0; i < nSelected; i++) { Reference xAcc = xSelection->getSelectedAccessibleChild(i); assert(xAcc.is()); -- cgit