loplugin:loopvartoosmall (clang-cl)

Change-Id: I8925e28d46f1ed983581b539cfbe6a01c034e0ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140098
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2022-09-17 14:33:32 +02:00
parent 9bed2b5956
commit 61576dbeda
+2 -2
View File
@@ -1040,7 +1040,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTable::get_selectedChildren(long, long **c
*nChildren = nChildCount;
*children = static_cast<long*>(CoTaskMemAlloc(nChildCount * sizeof(long)));
for( long i = 0; i< nChildCount; i++)
for( sal_Int64 i = 0; i< nChildCount; i++)
{
Reference<XAccessible> pRAcc = pRSelection->getSelectedAccessibleChild(i);
if(pRAcc.is())
@@ -1102,7 +1102,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTable::get_selectedCells(IUnknown * * * ce
*cells = static_cast<IUnknown**>(CoTaskMemAlloc(nSelected * sizeof(IUnknown*)));
for (long i = 0; i < nSelected; i++)
for (sal_Int64 i = 0; i < nSelected; i++)
{
Reference<XAccessible> xAcc = xSelection->getSelectedAccessibleChild(i);
assert(xAcc.is());