aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_choice_value.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-10-25 12:54:15 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2008-10-25 13:12:59 +0100
commit88df640929231d8fec056df9cfc47aab385aa9ef (patch)
tree2dfa80520a0c619209676e34ed12e057c3b31b26 /paludis/repositories/e/e_choice_value.cc
parent9124291229b1e2c42c16771025c066f7de2fcabc (diff)
downloadpaludis-88df640929231d8fec056df9cfc47aab385aa9ef.tar.gz
paludis-88df640929231d8fec056df9cfc47aab385aa9ef.tar.xz
Add ChoiceValue::enabled_by_default
Diffstat (limited to 'paludis/repositories/e/e_choice_value.cc')
-rw-r--r--paludis/repositories/e/e_choice_value.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/paludis/repositories/e/e_choice_value.cc b/paludis/repositories/e/e_choice_value.cc
index dbc5766ac..8d6c36c83 100644
--- a/paludis/repositories/e/e_choice_value.cc
+++ b/paludis/repositories/e/e_choice_value.cc
@@ -25,13 +25,14 @@ using namespace paludis::erepository;
EChoiceValue::EChoiceValue(const ChoicePrefixName & r, const UnprefixedChoiceName & v, const ChoiceNameWithPrefix & np, const QualifiedPackageName & p,
const std::tr1::shared_ptr<const UseDesc> & d,
- bool b, bool l, bool x) :
+ bool b, bool def, bool l, bool x) :
_prefix(r),
_unprefixed_name(v),
_name_with_prefix(np),
_package_name(p),
_use_desc(d),
_enabled(b),
+ _enabled_by_default(def),
_locked(l),
_explicitly_listed(x)
{
@@ -64,6 +65,12 @@ EChoiceValue::enabled() const
}
bool
+EChoiceValue::enabled_by_default() const
+{
+ return _enabled_by_default;
+}
+
+bool
EChoiceValue::locked() const
{
return _locked;