Sdk/State: Make destructor virtual

Former-commit-id: 160f97ed46bebe76c8d74ebd2b0ee609052d1182 [formerly 422657a7e1576bc590e66c9d26c9dda68988c37c]
Former-commit-id: 459cf63dfe7225687ce7f6e6373273ff7d8c24c5
This commit is contained in:
Lynix 2016-07-26 21:07:20 +02:00
parent 705359e3b7
commit f9a02f36d4
2 changed files with 11 additions and 1 deletions

View File

@ -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;

10
SDK/src/NDK/State.cpp Normal file
View File

@ -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 <NDK/State.hpp>
namespace Ndk
{
State::~State() = default;
}