From 4b02ab698f9ab709ac1ceec8fc758763b2a05b81 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 26 Jul 2016 21:07:20 +0200 Subject: [PATCH] Sdk/State: Make destructor virtual Former-commit-id: 51b552a0f0282173e73c8613d1924cc1e4105ac1 [formerly 1250f95f374a7b67e47667f4a5dd00f9ae5b1a1f] Former-commit-id: 85a77a07290da117bfcfbe6ccec7bc85b2c170dc --- SDK/include/NDK/State.hpp | 2 +- SDK/src/NDK/State.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 SDK/src/NDK/State.cpp diff --git a/SDK/include/NDK/State.hpp b/SDK/include/NDK/State.hpp index 613a504ab..f60cd6c4d 100644 --- a/SDK/include/NDK/State.hpp +++ b/SDK/include/NDK/State.hpp @@ -17,7 +17,7 @@ namespace Ndk { public: State() = default; - ~State() = default; + virtual ~State(); virtual void Enter(StateMachine& fsm) = 0; virtual void Leave(StateMachine& fsm) = 0; diff --git a/SDK/src/NDK/State.cpp b/SDK/src/NDK/State.cpp new file mode 100644 index 000000000..e256a7f1c --- /dev/null +++ b/SDK/src/NDK/State.cpp @@ -0,0 +1,10 @@ +// Copyright (C) 2016 Jérôme Leclercq +// This file is part of the "Nazara Development Kit" +// For conditions of distribution and use, see copyright notice in Prerequesites.hpp + +#include + +namespace Ndk +{ + State::~State() = default; +}