aboutsummaryrefslogtreecommitdiff
path: root/ruby/repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 19:19:57 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 22:01:52 +0100
commit576e0a19ba6bbf718d050f5743d687c3afc67641 (patch)
tree544032f388e6132acd7adb03271bfa488dcda75b /ruby/repository.cc
parentdd3736da2c72911ed8e7c3db6b45ae504d234af4 (diff)
downloadpaludis-576e0a19ba6bbf718d050f5743d687c3afc67641.tar.gz
paludis-576e0a19ba6bbf718d050f5743d687c3afc67641.tar.xz
Kill old ctor
Diffstat (limited to 'ruby/repository.cc')
-rw-r--r--ruby/repository.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/ruby/repository.cc b/ruby/repository.cc
index 05a886e8c..30d674f86 100644
--- a/ruby/repository.cc
+++ b/ruby/repository.cc
@@ -32,6 +32,7 @@
#include <paludis/util/mutex.hh>
#include <paludis/util/thread.hh>
#include <paludis/util/condition_variable.hh>
+#include <paludis/util/make_named_values.hh>
#include <ruby.h>
#include <list>
#include <tr1/functional>
@@ -664,8 +665,10 @@ namespace
if (2 != argc)
rb_raise(rb_eArgError, "FakeRepository.new expects two arguments, but got %d", argc);
- std::tr1::shared_ptr<Repository> * r = new std::tr1::shared_ptr<Repository>(new
- FakeRepository(value_to_environment(argv[0]).get(), RepositoryName(StringValuePtr(argv[1]))));
+ std::tr1::shared_ptr<Repository> * r = new std::tr1::shared_ptr<Repository>(new FakeRepository(
+ make_named_values<FakeRepositoryParams>(
+ value_for<n::environment>(value_to_environment(argv[0]).get()),
+ value_for<n::name>(RepositoryName(StringValuePtr(argv[1]))))));
VALUE tdata(Data_Wrap_Struct(self, 0, &Common<std::tr1::shared_ptr<Repository> >::free, r));
rb_obj_call_init(tdata, argc, argv);
return tdata;