summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-06-06 18:43:08 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-06-06 18:43:08 +0100
commit9cc41a458b1e63ec10dd5964959781aba7e2306e (patch)
tree2a3e05a5eeb6960480d6feffeeb6b0dfc6de9367
parentFix memory leak config variable (diff)
downloadproject2-9cc41a458b1e63ec10dd5964959781aba7e2306e.tar.bz2
project2-9cc41a458b1e63ec10dd5964959781aba7e2306e.tar.xz
project2-9cc41a458b1e63ec10dd5964959781aba7e2306e.zip
Add missing virtual destructor to OptionsSource
-rw-r--r--project2/common/optionsSource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/project2/common/optionsSource.h b/project2/common/optionsSource.h
index 4e0792b..7f1deee 100644
--- a/project2/common/optionsSource.h
+++ b/project2/common/optionsSource.h
@@ -20,6 +20,8 @@ typedef boost::shared_ptr<OptionsSource> OptionsSourcePtr;
/// Base class of things that load options
class OptionsSource {
public:
+ virtual ~OptionsSource() = default;
+
virtual void loadInto(const ConfigConsumer &, const Options::CurrentPlatform & platform) const = 0;
virtual boost::posix_time::ptime modifiedTime() const = 0;