From bc95d855b38b159f4921570fbdb728f925956b00 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Mon, 19 Dec 2011 17:50:15 +0100 Subject: [PATCH] Added a virtual destructor to sf::Transformable --- include/SFML/Graphics/Transformable.hpp | 6 ++++++ src/SFML/Graphics/Transformable.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/include/SFML/Graphics/Transformable.hpp b/include/SFML/Graphics/Transformable.hpp index 91a0d498..e42af36c 100644 --- a/include/SFML/Graphics/Transformable.hpp +++ b/include/SFML/Graphics/Transformable.hpp @@ -47,6 +47,12 @@ public : //////////////////////////////////////////////////////////// Transformable(); + //////////////////////////////////////////////////////////// + /// \brief Virtual destructor + /// + //////////////////////////////////////////////////////////// + virtual ~Transformable(); + //////////////////////////////////////////////////////////// /// \brief Set the position of the object /// diff --git a/src/SFML/Graphics/Transformable.cpp b/src/SFML/Graphics/Transformable.cpp index 31130bac..004a22b5 100644 --- a/src/SFML/Graphics/Transformable.cpp +++ b/src/SFML/Graphics/Transformable.cpp @@ -45,6 +45,12 @@ myInverseTransformNeedUpdate(true) } +//////////////////////////////////////////////////////////// +Transformable::~Transformable() +{ +} + + //////////////////////////////////////////////////////////// void Transformable::SetPosition(float x, float y) {