From 141b80b1122f47a78a1cb9d60c24b24993f8d500 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Wed, 8 Sep 2010 06:18:08 +0000 Subject: [PATCH] Started to add NoCopy as a base class to all objects to help detecting if an object is actually copied. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5919 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/animations/animation_base.hpp | 3 ++- src/animations/animation_manager.hpp | 4 +++- src/animations/ipo.hpp | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/animations/animation_base.hpp b/src/animations/animation_base.hpp index 435ca4fc9..cd6537947 100644 --- a/src/animations/animation_base.hpp +++ b/src/animations/animation_base.hpp @@ -30,6 +30,7 @@ using namespace irr; #include "tracks/track_object.hpp" +#include "utils/no_copy.hpp" class XMLNode; class Ipo; @@ -38,7 +39,7 @@ class Ipo; * \brief A base class for all animations. * \ingroup animations */ -class AnimationBase : public TrackObject +class AnimationBase : public TrackObject, public NoCopy { private: /** Two types of animations: cyclic ones that play all the time, and diff --git a/src/animations/animation_manager.hpp b/src/animations/animation_manager.hpp index bf0d48d1f..e0386d82f 100644 --- a/src/animations/animation_manager.hpp +++ b/src/animations/animation_manager.hpp @@ -23,6 +23,8 @@ #include #include +#include "utils/no_copy.hpp" + class AnimationBase; class Track; class XMLNode; @@ -31,7 +33,7 @@ class XMLNode; * \brief Controls all animations of a track. * \ingroup animations */ -class AnimationManager +class AnimationManager : public NoCopy { private: std::vector m_all_animations; diff --git a/src/animations/ipo.hpp b/src/animations/ipo.hpp index 24c2874cf..adb7840b9 100644 --- a/src/animations/ipo.hpp +++ b/src/animations/ipo.hpp @@ -26,6 +26,7 @@ #include "irrlicht.h" using namespace irr; +#include "utils/no_copy.hpp" #include "utils/vec3.hpp" class XMLNode; @@ -33,7 +34,7 @@ class XMLNode; /** \brief A class to manage a single blender IPO curve. * \ingroup animations */ -class Ipo +class Ipo : public NoCopy { public: /** All supported ipo types. */