refactor: PVS-Studio warnings fixes
This commit is contained in:
@@ -103,9 +103,8 @@ template <class T>
|
||||
static void write_indices(
|
||||
const ContentUnitIndices<T>& indices, dynamic::List& list
|
||||
) {
|
||||
size_t count = indices.count();
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
list.put(indices.get(i)->name); //FIXME: .get(i) potential null pointer //-V522
|
||||
for (auto unit : indices.getIterable()) {
|
||||
list.put(unit->name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user