Iterator Invalidation Bug

This commit is contained in:
2025-12-07 20:36:53 +01:00
parent 2ca0b8b061
commit 460cfeab2c
-3
View File
@@ -384,7 +384,6 @@ void reHDD::filterIgnoredDrives(list<Drive> *plistDrives)
Logger::logThis()->info("system drive found --> ignore this drive: " + it->getPath());
#endif
it = plistDrives->erase(it);
it--;
}
}
}
@@ -437,7 +436,6 @@ void reHDD::filterIgnoredDrives(list<Drive> *plistDrives)
Logger::logThis()->info("same uuid found than in ignore file --> ignore this drive: " + it->getPath());
#endif
it = plistDrives->erase(it);
it--;
}
}
}
@@ -459,7 +457,6 @@ void reHDD::filterInvalidDrives(list<Drive> *plistDrives)
Logger::logThis()->info("Drive reports zero capacity --> ignore this drive: " + it->getPath());
#endif
it = plistDrives->erase(it);
it--;
}
}
}