summaryrefslogtreecommitdiffstats
path: root/src/server/Engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Engine.cpp')
-rw-r--r--src/server/Engine.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp
index ce84de4d..5002feca 100644
--- a/src/server/Engine.cpp
+++ b/src/server/Engine.cpp
@@ -82,11 +82,11 @@ Engine::~Engine()
_root_graph = NULL;
deactivate();
- const SharedPtr<Store> s = this->store();
- if (s) {
- for (Store::iterator i = s->begin(); i != s->end(); ++i) {
- if (!PtrCast<NodeImpl>(i->second)->parent()) {
- i->second.reset();
+ const SharedPtr<Store> store = this->store();
+ if (store) {
+ for (auto& s : *store.get()) {
+ if (!PtrCast<NodeImpl>(s.second)->parent()) {
+ s.second.reset();
}
}
}