From be48953642d34dc2b8bd43197f4920caa80589cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 2 Dec 2013 02:21:43 +0100 Subject: [PATCH] SceneGraph: deinline Object constructor. Might save some generated code. --- src/SceneGraph/Object.h | 4 +--- src/SceneGraph/Object.hpp | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/SceneGraph/Object.h b/src/SceneGraph/Object.h index 733c4a786..5a442edea 100644 --- a/src/SceneGraph/Object.h +++ b/src/SceneGraph/Object.h @@ -117,9 +117,7 @@ template class MAGNUM_SCENEGRAPH_EXPORT Object: public Abs * @brief Constructor * @param parent Parent object */ - explicit Object(Object* parent = nullptr): counter(0xFFFFu), flags(Flag::Dirty) { - setParent(parent); - } + explicit Object(Object* parent = nullptr); /** * @brief Destructor diff --git a/src/SceneGraph/Object.hpp b/src/SceneGraph/Object.hpp index a234549dc..f9acc65b5 100644 --- a/src/SceneGraph/Object.hpp +++ b/src/SceneGraph/Object.hpp @@ -43,6 +43,10 @@ template AbstractObject::~Abstra template AbstractTransformation::AbstractTransformation() {} +template Object::Object(Object* parent): counter(0xFFFFu), flags(Flag::Dirty) { + setParent(parent); +} + template Object::~Object() = default; template Scene* Object::scene() {