aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_installed_repository_id.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-31 16:17:41 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-31 16:17:41 +0000
commit8cd3f89f1e7817fafca33e410b24af18fc333874 (patch)
tree1f991906a1512f4b8f508db07834575671fde660 /paludis/repositories/e/e_installed_repository_id.cc
parent6eeca897e480fbb24cc5bfd6df6cf97fc5d82594 (diff)
downloadpaludis-8cd3f89f1e7817fafca33e410b24af18fc333874.tar.gz
paludis-8cd3f89f1e7817fafca33e410b24af18fc333874.tar.xz
Reuse common choice values
Diffstat (limited to 'paludis/repositories/e/e_installed_repository_id.cc')
-rw-r--r--paludis/repositories/e/e_installed_repository_id.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/repositories/e/e_installed_repository_id.cc b/paludis/repositories/e/e_installed_repository_id.cc
index c33464fd5..d2e7bb604 100644
--- a/paludis/repositories/e/e_installed_repository_id.cc
+++ b/paludis/repositories/e/e_installed_repository_id.cc
@@ -1042,7 +1042,7 @@ EInstalledRepositoryID::slot_key() const
return _imp->keys->slot;
}
-std::shared_ptr<ChoiceValue>
+const std::shared_ptr<const ChoiceValue>
EInstalledRepositoryID::make_choice_value(const std::shared_ptr<const Choice> & c, const UnprefixedChoiceName & v,
const Tribool, const bool, const bool explicitly_listed, const std::string & override_description, const bool) const
{
@@ -1064,7 +1064,7 @@ EInstalledRepositoryID::make_choice_value(const std::shared_ptr<const Choice> &
if (raw_use_key())
enabled = (raw_use_key()->value()->end() != raw_use_key()->value()->find(name_with_prefix));
- return std::make_shared<EChoiceValue>(make_named_values<EChoiceValueParams>(
+ return EChoiceValueStore::get_instance()->fetch(make_named_values<EChoiceValueParams>(
n::choice_name_with_prefix() = ChoiceNameWithPrefix(name_with_prefix),
n::choice_prefix_name() = c->prefix(),
n::description() = override_description,