const-ify some references (satisfy cppcheck)

This commit is contained in:
Martin Vierula
2023-10-27 06:20:01 -07:00
parent b9836bcaa4
commit 36adc58ea3
11 changed files with 14 additions and 14 deletions

View File

@@ -62,7 +62,7 @@ class VariableValue {
m_keyWithCollection(o->m_keyWithCollection),
m_value(o->m_value)
{
for (auto &i : o->m_orign) {
for (const auto &i : o->m_orign) {
std::unique_ptr<VariableOrigin> origin(new VariableOrigin());
origin->m_offset = i->m_offset;
origin->m_length = i->m_length;