aboutsummaryrefslogtreecommitdiff
path: root/ruby/repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 18:34:00 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 18:55:26 +0100
commit8603d3262180a2771947801ce1d80cbd5092c989 (patch)
tree85f5265b67dc94b063b320870a8ea8588999593e /ruby/repository.cc
parentf7be9952e67a5cdad6f3531a22654db198e7d106 (diff)
downloadpaludis-8603d3262180a2771947801ce1d80cbd5092c989.tar.gz
paludis-8603d3262180a2771947801ce1d80cbd5092c989.tar.xz
shared_ptr<> no longer implicitly bools
Diffstat (limited to 'ruby/repository.cc')
-rw-r--r--ruby/repository.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/repository.cc b/ruby/repository.cc
index 440df5a45..ff5d09060 100644
--- a/ruby/repository.cc
+++ b/ruby/repository.cc
@@ -701,7 +701,7 @@ VALUE repo_to_value(T_ m, VALUE * klass)
VALUE
paludis::ruby::repository_to_value(std::shared_ptr<Repository> m)
{
- if (0 == m)
+ if (! m)
return Qnil;
else
return repo_to_value<std::shared_ptr<Repository> >(m, &c_repository);