mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Ensured that a virtual destructor is declared, so that the various automatically-generated real constructors get in on the action.
This commit is contained in:
parent
4785e316ff
commit
1d8edf58dd
@ -881,3 +881,5 @@ using namespace AmstradCPC;
|
|||||||
Machine *Machine::AmstradCPC() {
|
Machine *Machine::AmstradCPC() {
|
||||||
return new AmstradCPC::ConcreteMachine;
|
return new AmstradCPC::ConcreteMachine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Machine::~Machine() {}
|
||||||
|
@ -52,6 +52,8 @@ class Machine:
|
|||||||
public ConfigurationTarget::Machine,
|
public ConfigurationTarget::Machine,
|
||||||
public KeyboardMachine::Machine {
|
public KeyboardMachine::Machine {
|
||||||
public:
|
public:
|
||||||
|
virtual ~Machine();
|
||||||
|
|
||||||
/// Creates an returns an Amstrad CPC on the heap.
|
/// Creates an returns an Amstrad CPC on the heap.
|
||||||
static Machine *AmstradCPC();
|
static Machine *AmstradCPC();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user