diff options
Diffstat (limited to 'project2/common/options.cpp')
-rw-r--r-- | project2/common/options.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/project2/common/options.cpp b/project2/common/options.cpp index 94ae861..60fd7cd 100644 --- a/project2/common/options.cpp +++ b/project2/common/options.cpp @@ -11,7 +11,7 @@ class NamedOption : public Options::Option { desc(d) { } - void consume(const Glib::ustring & n, const Glib::ustring & p, const Glib::ustring & v) const { + void consume(const Glib::ustring & n, const Glib::ustring & p, const VariableType & v) const { if (n == id) { target->consume(p, v); } @@ -44,7 +44,7 @@ class OptionAlias : public Options::Option { target(t) { } - void consume(const Glib::ustring & a, const Glib::ustring & p, const Glib::ustring & v) const { + void consume(const Glib::ustring & a, const Glib::ustring & p, const VariableType & v) const { if (a == alias) { target->target->consume(p, v); } @@ -108,12 +108,13 @@ Options::reset() const } void -Options::consume(const Glib::ustring & n, const Glib::ustring & p, const Glib::ustring & v) const +Options::consume(const Glib::ustring & n, const Glib::ustring & p, const VariableType & v) const { BOOST_FOREACH(const OptionPtr & o, options) { o->consume(n, p, v); } } + const Options::Option * Options::find(const Glib::ustring & n) const { BOOST_FOREACH(const OptionPtr & o, options) { @@ -130,7 +131,7 @@ Options::InstanceTarget::InstanceTarget() : } void -Options::InstanceTarget::consume(const Glib::ustring & p, const Glib::ustring & v) const +Options::InstanceTarget::consume(const Glib::ustring & p, const VariableType & v) const { if (ts != Platform && p.empty()) { assign(v); |