diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-31 14:14:09 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-31 14:14:09 +0100 |
commit | f8d8d7499ba4433678db2a68fb1cae74448ca31e (patch) | |
tree | fc96bef89fc3206277d1fcf1e3df5ad733b7e652 /backend/PtrList.hpp | |
parent | a0e14fa424494ed35da1bd6e5e54bb36178259a7 (diff) |
make ListIterator continue working on a changing list
Diffstat (limited to 'backend/PtrList.hpp')
-rw-r--r-- | backend/PtrList.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/PtrList.hpp b/backend/PtrList.hpp index 96f2643..cbfd6e0 100644 --- a/backend/PtrList.hpp +++ b/backend/PtrList.hpp @@ -4,7 +4,7 @@ template <typename T> PtrList<T>::~PtrList() { - for (T * obj : *this) + for (T * & obj : *this) delete obj; } |