summaryrefslogtreecommitdiffstats
path: root/engine/component.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engine/component.cpp')
-rw-r--r--engine/component.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engine/component.cpp b/engine/component.cpp
index a3eccae..5c1db80 100644
--- a/engine/component.cpp
+++ b/engine/component.cpp
@@ -8,8 +8,7 @@ component::component(component *parent, const std::string& id)
{
// TODO, check flatland initialization
- if (parent == 0)
- {
+ if (parent == nullptr) {
// TODO set screen as parent layer
}
}
@@ -21,11 +20,11 @@ component::~component()
void component::set_parent(component *parent)
{
- if (parent == 0) {
+ if (parent == nullptr) {
// TODO set screen as parent layer
}
- this->m_parent = m_parent;
+ m_parent = parent;
}
component * component::parent()