summaryrefslogtreecommitdiff
path: root/project2/common/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/options.cpp')
-rw-r--r--project2/common/options.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/project2/common/options.cpp b/project2/common/options.cpp
index c1ed762..20577eb 100644
--- a/project2/common/options.cpp
+++ b/project2/common/options.cpp
@@ -1,6 +1,6 @@
#include <pch.hpp>
#include "options.h"
-#include "instanceStore.impl.h"
+#include <plugins.impl.h>
class NamedOption : public Options::Option {
public:
@@ -75,7 +75,7 @@ Options::Options(Glib::ustring const & n) :
Options &
Options::operator()(const Glib::ustring & n, TargetPtr t, const Glib::ustring & d)
{
- options.push_back(new NamedOption(n, t, d));
+ options.push_back(std::make_shared<NamedOption>(n, t, d));
return *this;
}
@@ -84,7 +84,7 @@ Options::operator()(const Glib::ustring & a)
{
for (OptionList::const_reverse_iterator i = options.rbegin(); i != options.rend(); ++i) {
if (const NamedOption * no = dynamic_cast<const NamedOption *>(i->get())) {
- options.push_back(new OptionAlias(a, no));
+ options.push_back(std::make_shared<OptionAlias>(a, no));
break;
}
}
@@ -169,5 +169,5 @@ Options::InstanceTarget::assign(const VariableType & value) const
assigner(value);
}
-INSTANTIATESTORE(std::string, Options);
+INSTANTIATEPLUGINOF(Options);