Fix remaining marked as done const* cppcheck warnings

This commit is contained in:
Konstantinos Margaritis
2024-05-15 10:52:31 +03:00
parent 93239afa3a
commit 129df24422
23 changed files with 54 additions and 54 deletions

View File

@@ -278,7 +278,7 @@ set<const GoughSSAVar *> live_during(GoughSSAVar *def, const GoughGraph &g,
template<typename VarP>
void set_initial_slots(const vector<VarP> &vars, u32 *next_slot) {
for (auto &var : vars) {
for (const auto &var : vars) {
assert(var->slot == INVALID_SLOT);
var->slot = (*next_slot)++;
}