mirror of
https://github.com/mfontanini/libtins
synced 2026-01-27 12:14:26 +01:00
Fix Cppcheck 1.75 warnings (#159)
- The scope of the variable 'last_index' & 'index' could be reduced. - Prefer prefix ++/-- operators for non-primitive types.
This commit is contained in:
@@ -215,7 +215,7 @@ void LLC::write_serialization(uint8_t* buffer, uint32_t total_sz, const Tins::PD
|
||||
break;
|
||||
}
|
||||
|
||||
for (field_list::const_iterator it = information_fields_.begin(); it != information_fields_.end(); it++) {
|
||||
for (field_list::const_iterator it = information_fields_.begin(); it != information_fields_.end(); ++it) {
|
||||
stream.write(it->begin(), it->end());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user