InputCommon/Core: Get rid of some virtual destructor warnings

These classes have virtual methods, but no virtual destructor, which causes warnings on some compilers.
This commit is contained in:
Lioncash 2015-04-27 21:41:55 -04:00
parent 4bf4778cd7
commit d39b519850
2 changed files with 8 additions and 1 deletions

View File

@ -128,6 +128,10 @@ public:
{
}
virtual ~JitBaseBlockCache()
{
}
int AllocateBlock(u32 em_address);
void FinalizeBlock(int block_num, bool block_link, const u8 *code_ptr);

View File

@ -85,7 +85,6 @@ public:
class Setting
{
public:
Setting(const std::string& _name, const ControlState def_value
, const unsigned int _low = 0, const unsigned int _high = 100)
: name(_name)
@ -96,6 +95,10 @@ public:
, is_virtual(false)
, is_iterate(false) {}
virtual ~Setting()
{
}
const std::string name;
ControlState value;
const ControlState default_value;