aboutsummaryrefslogtreecommitdiff
path: root/ruby/repository.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/repository.cc')
-rw-r--r--ruby/repository.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/ruby/repository.cc b/ruby/repository.cc
index a910637..6f10a5c 100644
--- a/ruby/repository.cc
+++ b/ruby/repository.cc
@@ -499,8 +499,8 @@ namespace
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]))))));
+ n::environment() = value_to_environment(argv[0]).get(),
+ 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;
@@ -527,10 +527,10 @@ namespace
std::tr1::shared_ptr<Repository> * r = new std::tr1::shared_ptr<Repository>(new
FakeInstalledRepository(make_named_values<FakeInstalledRepositoryParams>(
- value_for<n::environment>(value_to_environment(argv[0]).get()),
- value_for<n::name>(RepositoryName(StringValuePtr(argv[1]))),
- value_for<n::suitable_destination>(true),
- value_for<n::supports_uninstall>(true)
+ n::environment() = value_to_environment(argv[0]).get(),
+ n::name() = RepositoryName(StringValuePtr(argv[1])),
+ n::suitable_destination() = true,
+ n::supports_uninstall() = true
)));
VALUE tdata(Data_Wrap_Struct(self, 0, &Common<std::tr1::shared_ptr<Repository> >::free, r));
rb_obj_call_init(tdata, argc, argv);