Avoid dynamic memory allocation [3/n]

- use reference on auto type to prevent copy.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2022-04-06 15:46:32 +00:00
committed by Compute-Runtime-Automation
parent bab1827e15
commit fe9fe80fc6

View File

@@ -1365,7 +1365,7 @@ int changeBufferObjectBinding(Drm *drm, OsContext *osContext, uint32_t vmHandleI
flags |= ioctlHelper->getFlagsForVmBind(bindCapture, bindImmediate, bindMakeResident);
}
auto bindAddresses = bo->getColourAddresses();
auto &bindAddresses = bo->getColourAddresses();
auto bindIterations = bindAddresses.size();
if (bindIterations == 0) {
bindIterations = 1;