Skip to content

Commit

Permalink
fix(core): use const in sample for loop
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
RiscadoA and github-actions[bot] committed Sep 28, 2023
1 parent 3760591 commit 272177a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/samples/reflection/traits/array/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void printArray(const Type& type, const void* instance)
return;
}

for (auto* element : arrayView)
for (const auto* element : arrayView)
{
CUBOS_INFO("{}", *static_cast<const int32_t*>(element));
}
Expand Down

0 comments on commit 272177a

Please sign in to comment.