aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-27 23:54:51 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-01 03:57:52 +0000
commit97c38fc7c02260a2d213d9a16d878a0410b9d57a (patch)
treefef7c8137e22b2582acb3b66496ced9aa4135897 /ruby
parenta1b11d059009182f19bf9cf23e060dee752d4632 (diff)
downloadpaludis-97c38fc7c02260a2d213d9a16d878a0410b9d57a.tar.gz
paludis-97c38fc7c02260a2d213d9a16d878a0410b9d57a.tar.xz
Pass PackageIDs by shared_ptr
Diffstat (limited to 'ruby')
-rw-r--r--ruby/environment.cc4
-rw-r--r--ruby/paludis_ruby.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/ruby/environment.cc b/ruby/environment.cc
index a33172a70..e8befb2b5 100644
--- a/ruby/environment.cc
+++ b/ruby/environment.cc
@@ -121,7 +121,7 @@ namespace
try
{
return value_to_environment(self)->accept_license(
- std::string(StringValuePtr(license)), *(value_to_package_id(p))) ? Qtrue : Qfalse;
+ std::string(StringValuePtr(license)), (value_to_package_id(p))) ? Qtrue : Qfalse;
}
catch (const std::exception & e)
{
@@ -151,7 +151,7 @@ namespace
VALUE kw = rb_ary_entry(keywords, i);
knc->insert(KeywordName(StringValuePtr(kw)));
}
- return value_to_environment(self)->accept_keywords(knc, *value_to_package_id(p)) ? Qtrue : Qfalse;
+ return value_to_environment(self)->accept_keywords(knc, value_to_package_id(p)) ? Qtrue : Qfalse;
}
catch (const std::exception & e)
{
diff --git a/ruby/paludis_ruby.cc b/ruby/paludis_ruby.cc
index 2bed22d63..95d68140b 100644
--- a/ruby/paludis_ruby.cc
+++ b/ruby/paludis_ruby.cc
@@ -92,7 +92,7 @@ namespace
std::shared_ptr<const PackageDepSpec> spec = value_to_package_dep_spec(a);
std::shared_ptr<const PackageID> target = value_to_package_id(t);
MatchPackageOptions options(value_to_match_package_options(o));
- return match_package(*env, *spec, *target, options) ? Qtrue : Qfalse;
+ return match_package(*env, *spec, target, options) ? Qtrue : Qfalse;
}
catch (const std::exception & e)
{
@@ -118,7 +118,7 @@ namespace
std::shared_ptr<const SetSpecTree> spec = value_to_dep_tree<SetSpecTree>(a);
std::shared_ptr<const PackageID> target = value_to_package_id(t);
MatchPackageOptions options(value_to_match_package_options(o));
- return match_package_in_set(*env, *spec, *target, options) ? Qtrue : Qfalse;
+ return match_package_in_set(*env, *spec, target, options) ? Qtrue : Qfalse;
}
catch (const std::exception & e)
{