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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/common/options.cpp b/project2/common/options.cpp
index 7819bd9..20577eb 100644
--- a/project2/common/options.cpp
+++ b/project2/common/options.cpp
@@ -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;
}
}