mirror of https://github.com/stella-emu/stella.git
Enabled C++11 "= default" for destructors in the src/cheat and src/common
classes. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3241 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
2aec7bc1b1
commit
ac98c97bb5
|
@ -26,7 +26,7 @@ class BankRomCheat : public Cheat
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BankRomCheat(OSystem& os, const string& name, const string& code);
|
BankRomCheat(OSystem& os, const string& name, const string& code);
|
||||||
virtual ~BankRomCheat() { }
|
virtual ~BankRomCheat() = default;
|
||||||
|
|
||||||
bool enable() override;
|
bool enable() override;
|
||||||
bool disable() override;
|
bool disable() override;
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Cheat
|
||||||
myCode(code),
|
myCode(code),
|
||||||
myEnabled(false)
|
myEnabled(false)
|
||||||
{ }
|
{ }
|
||||||
virtual ~Cheat() { }
|
virtual ~Cheat() = default;
|
||||||
|
|
||||||
bool enabled() const { return myEnabled; }
|
bool enabled() const { return myEnabled; }
|
||||||
const string& name() const { return myName; }
|
const string& name() const { return myName; }
|
||||||
|
|
|
@ -26,7 +26,7 @@ class CheetahCheat : public Cheat
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CheetahCheat(OSystem& os, const string& name, const string& code);
|
CheetahCheat(OSystem& os, const string& name, const string& code);
|
||||||
virtual ~CheetahCheat() { }
|
virtual ~CheetahCheat() = default;
|
||||||
|
|
||||||
bool enable() override;
|
bool enable() override;
|
||||||
bool disable() override;
|
bool disable() override;
|
||||||
|
|
|
@ -26,7 +26,7 @@ class RamCheat : public Cheat
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RamCheat(OSystem& os, const string& name, const string& code);
|
RamCheat(OSystem& os, const string& name, const string& code);
|
||||||
virtual ~RamCheat() { }
|
virtual ~RamCheat() = default;
|
||||||
|
|
||||||
bool enable() override;
|
bool enable() override;
|
||||||
bool disable() override;
|
bool disable() override;
|
||||||
|
|
|
@ -26,11 +26,6 @@ EventHandlerSDL2::EventHandlerSDL2(OSystem& osystem)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
||||||
EventHandlerSDL2::~EventHandlerSDL2()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void EventHandlerSDL2::enableTextEvents(bool enable)
|
void EventHandlerSDL2::enableTextEvents(bool enable)
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,7 +42,7 @@ class EventHandlerSDL2 : public EventHandler
|
||||||
/**
|
/**
|
||||||
Destructor
|
Destructor
|
||||||
*/
|
*/
|
||||||
virtual ~EventHandlerSDL2();
|
virtual ~EventHandlerSDL2() = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -48,7 +48,7 @@ class SoundNull : public Sound
|
||||||
/**
|
/**
|
||||||
Destructor
|
Destructor
|
||||||
*/
|
*/
|
||||||
virtual ~SoundNull() { }
|
virtual ~SoundNull() = default;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue