aboutsummaryrefslogtreecommitdiff
path: root/backend/PtrList.hpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-31 14:14:09 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-31 14:14:09 +0100
commitf8d8d7499ba4433678db2a68fb1cae74448ca31e (patch)
treefc96bef89fc3206277d1fcf1e3df5ad733b7e652 /backend/PtrList.hpp
parenta0e14fa424494ed35da1bd6e5e54bb36178259a7 (diff)
make ListIterator continue working on a changing list
Diffstat (limited to 'backend/PtrList.hpp')
-rw-r--r--backend/PtrList.hpp2
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;
}