Code cleanups

This commit is contained in:
Jason Turner
2014-10-18 16:18:56 -06:00
parent 48c97bce9c
commit 9e8b833d11
3 changed files with 26 additions and 20 deletions

View File

@@ -8,7 +8,7 @@ class BaseClass
{
}
virtual ~BaseClass() = default;
virtual ~BaseClass() {}
virtual std::string doSomething(float, double) const = 0;
@@ -42,14 +42,14 @@ class ChaiScriptDerived : public BaseClass
tie(t_funcs.at(1), m_validateValueImpl);
}
std::string doSomething(float f, double d) const override
std::string doSomething(float f, double d) const CHAISCRIPT_OVERRIDE
{
assert(m_doSomethingImpl);
return m_doSomethingImpl(*this, f, d);
}
protected:
bool validateValue(const std::string &t_val) override
bool validateValue(const std::string &t_val) CHAISCRIPT_OVERRIDE
{
assert(m_validateValueImpl);
return m_validateValueImpl(*this, t_val);