Mercurial > code
changeset 253:a4770082e7d6
TreeNode: forget to return this
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 02 Oct 2014 11:45:24 +0200 |
parents | 19bfc11f77c2 |
children | 812dd806f803 |
files | C++/TreeNode.h |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/C++/TreeNode.h Thu Oct 02 11:34:04 2014 +0200 +++ b/C++/TreeNode.h Thu Oct 02 11:45:24 2014 +0200 @@ -130,6 +130,8 @@ m_children.push_back(std::make_unique<T>(*c)); m_children.back()->m_parent = this; } + + return *this; } /** @@ -146,6 +148,8 @@ c->m_parent = this; other.m_children.clear(); + + return *this; } /**