Skip to content

Commit 8f2776d

Browse files
committed
use const auto& to avoid copy
1 parent 1e5c0e1 commit 8f2776d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/provider_os_memory_multiple_numa_nodes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ TEST_P(testNumaSplit, checkModeSplit) {
586586
memset(ptr, 0xFF, size);
587587
// Test where each page will be allocated.
588588
size_t index = 0;
589-
for (auto x : out) {
589+
for (const auto &x : out) {
590590
numa_bitmask_clearall(nodemask);
591591

592592
// Query the memory policy for the specific address

0 commit comments

Comments
 (0)