summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Maid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/Maid.cpp')
-rw-r--r--src/libs/engine/Maid.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/engine/Maid.cpp b/src/libs/engine/Maid.cpp
index b6b4e4c7..005c544f 100644
--- a/src/libs/engine/Maid.cpp
+++ b/src/libs/engine/Maid.cpp
@@ -19,7 +19,7 @@
Maid::Maid(size_t size)
-: m_objects(size)
+: _objects(size)
{
}
@@ -37,8 +37,9 @@ Maid::cleanup()
{
MaidObject* obj = NULL;
- while (!m_objects.is_empty()) {
- obj = m_objects.pop();
+ while (!_objects.empty()) {
+ obj = _objects.front();
+ _objects.pop();
delete obj;
}
}