aboutsummaryrefslogtreecommitdiff
path: root/paludis/repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-19 16:01:04 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-19 16:01:04 +0100
commitcc129190d549f69eccc67407946261544d538a91 (patch)
tree08f0ffe78b5c3f63dfc89d32dba1d828a5107dd0 /paludis/repository.cc
parentb22056183d6a0e94e28e025c6bae6970979c26c0 (diff)
downloadpaludis-cc129190d549f69eccc67407946261544d538a91.tar.gz
paludis-cc129190d549f69eccc67407946261544d538a91.tar.xz
New improved NamedValue syntax
Diffstat (limited to 'paludis/repository.cc')
-rw-r--r--paludis/repository.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/repository.cc b/paludis/repository.cc
index 98c633d..7830f6c 100644
--- a/paludis/repository.cc
+++ b/paludis/repository.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2005, 2006, 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -79,7 +79,7 @@ namespace paludis
{
namespace n
{
- struct repository_blacklist;
+ typedef Name<struct repository_blacklist_name> repository_blacklist;
}
}
@@ -106,8 +106,8 @@ namespace paludis
static std::tr1::shared_ptr<RepositoryDistribution> make_data(const std::tr1::shared_ptr<const KeyValueConfigFile> & k)
{
return make_shared_ptr(new RepositoryDistribution(make_named_values<RepositoryDistribution>(
- value_for<n::repository_blacklist>(std::tr1::bind(std::tr1::mem_fn(&KeyValueConfigFile::get),
- k, std::tr1::placeholders::_1))
+ n::repository_blacklist() = std::tr1::bind(std::tr1::mem_fn(&KeyValueConfigFile::get),
+ k, std::tr1::placeholders::_1)
)));
}
};