aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-09 10:23:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-09 10:23:12 +0000
commit7a2c9e974666881f44406c88189ae546a67ff0b7 (patch)
treef6846da02bf779a262f58e5042f3fa1bbf7415d3 /ruby
parent7f7c79fcc67df4fae498ca943e36592d3f7a3ad2 (diff)
downloadpaludis-7a2c9e974666881f44406c88189ae546a67ff0b7.tar.gz
paludis-7a2c9e974666881f44406c88189ae546a67ff0b7.tar.xz
Rework Pimp to avoid ImpPtr ickiness
Fixes: ticket:1070
Diffstat (limited to 'ruby')
-rw-r--r--ruby/paludis_ruby.cc2
-rw-r--r--ruby/paludis_ruby.hh5
2 files changed, 4 insertions, 3 deletions
diff --git a/ruby/paludis_ruby.cc b/ruby/paludis_ruby.cc
index 661c62d60..292dda43b 100644
--- a/ruby/paludis_ruby.cc
+++ b/ruby/paludis_ruby.cc
@@ -156,7 +156,7 @@ namespace
}
RegisterRubyClass::RegisterRubyClass() :
- Pimp<RegisterRubyClass>()
+ _imp()
{
}
diff --git a/ruby/paludis_ruby.hh b/ruby/paludis_ruby.hh
index bb86a76c9..6888fd28e 100644
--- a/ruby/paludis_ruby.hh
+++ b/ruby/paludis_ruby.hh
@@ -149,12 +149,13 @@ namespace paludis
/* registration */
class RegisterRubyClass :
- public Singleton<RegisterRubyClass>,
- private Pimp<RegisterRubyClass>
+ public Singleton<RegisterRubyClass>
{
friend class Singleton<RegisterRubyClass>;
private:
+ Pimp<RegisterRubyClass> _imp;
+
RegisterRubyClass();
~RegisterRubyClass();