Skip to content

Commit c4750ff

Browse files
committed
cppcheck fixes
1 parent e8e1e10 commit c4750ff

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

include/vsg/io/stream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,14 @@ namespace vsg
344344
output << "{ ";
345345

346346
bool first = true;
347-
for (auto& value : values)
347+
for (const auto& v : values)
348348
{
349349
if (!first)
350350
output << ", ";
351351
else
352352
first = false;
353353

354-
output << value;
354+
output << v;
355355
}
356356

357357
output << " }";

src/vsg/utils/GraphicsPipelineConfigurator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,20 +600,20 @@ int GraphicsPipelineConfigurator::compare(const Object& rhs_object) const
600600
if (rhs.valid())
601601
{
602602
if (*lhs.itr < *rhs.itr)
603-
lhs.itr++;
603+
++lhs.itr;
604604
else if (*rhs.itr < *lhs.itr)
605-
rhs.itr++;
605+
++rhs.itr;
606606
else
607607
{
608608
++lhs.itr;
609609
++rhs.itr;
610610
}
611611
}
612612
else
613-
lhs.itr++;
613+
++lhs.itr;
614614
}
615615
else if (rhs.valid())
616-
rhs.itr++;
616+
++rhs.itr;
617617

618618
return valid();
619619
}

0 commit comments

Comments
 (0)