diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-08 22:13:39 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-08 22:13:39 -0500 |
commit | 831f22fb241e6bbf6e03a61f76932a22a63e4564 (patch) | |
tree | 9415d3e3df55e974920c2e89b3ab8290b7acc445 | |
parent | a6c6d0a42920fb9332f810e949fdf5fe20262f22 (diff) | |
download | horizon-831f22fb241e6bbf6e03a61f76932a22a63e4564.tar.gz horizon-831f22fb241e6bbf6e03a61f76932a22a63e4564.tar.bz2 horizon-831f22fb241e6bbf6e03a61f76932a22a63e4564.tar.xz horizon-831f22fb241e6bbf6e03a61f76932a22a63e4564.zip |
hscript: Ensure Key vtable isn't duped in every object
-rw-r--r-- | hscript/key.cc | 3 | ||||
-rw-r--r-- | hscript/key.hh | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/hscript/key.cc b/hscript/key.cc index bc71517..6077e65 100644 --- a/hscript/key.cc +++ b/hscript/key.cc @@ -14,6 +14,9 @@ #include "key.hh" #include "util/output.hh" +Horizon::Keys::Key::~Key() { +} + bool Horizon::Keys::BooleanKey::parse(const std::string what, const std::string where, const std::string key, bool *out) { diff --git a/hscript/key.hh b/hscript/key.hh index 44cbdf2..8b29212 100644 --- a/hscript/key.hh +++ b/hscript/key.hh @@ -28,7 +28,7 @@ protected: int line; Key(int _line) : line(_line) {} public: - virtual ~Key() {} + virtual ~Key(); /*! Create the Key object with the specified data as the entire value. * @param data The value associated with the key. |