mirror of
https://github.com/microsoft/terminal.git
synced 2026-03-07 18:01:49 -05:00
C26446, Use .at instead of array indices
This commit is contained in:
@@ -487,7 +487,7 @@ IFACEMETHODIMP UiaTextRangeBase::GetBoundingRectangles(_Outptr_result_maybenull_
|
||||
HRESULT hr;
|
||||
for (LONG i = 0; i < static_cast<LONG>(coords.size()); ++i)
|
||||
{
|
||||
hr = SafeArrayPutElement(*ppRetVal, &i, &coords[i]);
|
||||
hr = SafeArrayPutElement(*ppRetVal, &i, &coords.at(i));
|
||||
if (FAILED(hr))
|
||||
{
|
||||
SafeArrayDestroy(*ppRetVal);
|
||||
|
||||
Reference in New Issue
Block a user