aboutsummaryrefslogtreecommitdiff
path: root/paludis/args/args_option.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/args/args_option.cc')
-rw-r--r--paludis/args/args_option.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/paludis/args/args_option.cc b/paludis/args/args_option.cc
index c72cd32..9cb2c63 100644
--- a/paludis/args/args_option.cc
+++ b/paludis/args/args_option.cc
@@ -449,9 +449,9 @@ EnumArg::EnumArgOptions::EnumArgOptions(const std::string & opt, const std::stri
PrivateImplementationPattern<EnumArgOptions>(new Implementation<EnumArgOptions>)
{
_imp->options.push_back(make_named_values<AllowedEnumArg>(
- value_for<n::description>(desc),
- value_for<n::long_name>(opt),
- value_for<n::short_name>('\0')
+ n::description() = desc,
+ n::long_name() = opt,
+ n::short_name() = '\0'
));
}
@@ -459,9 +459,9 @@ EnumArg::EnumArgOptions::EnumArgOptions(const std::string & opt, const char s, c
PrivateImplementationPattern<EnumArgOptions>(new Implementation<EnumArgOptions>)
{
_imp->options.push_back(make_named_values<AllowedEnumArg>(
- value_for<n::description>(desc),
- value_for<n::long_name>(opt),
- value_for<n::short_name>(s)
+ n::description() = desc,
+ n::long_name() = opt,
+ n::short_name() = s
));
}
@@ -469,9 +469,9 @@ EnumArg::EnumArgOptions &
EnumArg::EnumArgOptions::operator() (const std::string & opt, const std::string & desc)
{
_imp->options.push_back(make_named_values<AllowedEnumArg>(
- value_for<n::description>(desc),
- value_for<n::long_name>(opt),
- value_for<n::short_name>('\0')
+ n::description() = desc,
+ n::long_name() = opt,
+ n::short_name() = '\0'
));
return *this;
}
@@ -480,9 +480,9 @@ EnumArg::EnumArgOptions &
EnumArg::EnumArgOptions::operator() (const std::string & opt, const char s, const std::string & desc)
{
_imp->options.push_back(make_named_values<AllowedEnumArg>(
- value_for<n::description>(desc),
- value_for<n::long_name>(opt),
- value_for<n::short_name>(s)
+ n::description() = desc,
+ n::long_name() = opt,
+ n::short_name() = s
));
return *this;
}