[Kde-bindings] KDE/kdebindings/ruby/qtruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Apr 10 11:36:19 UTC 2008
SVN commit 795459 by rdale:
* When matching arg types, strip off an '::Ptr' or 'Ptr' at the end
of the type. This is to ensure that something like a KDE::Service
ruby instance can be passed to a method expecting a type of
KService::Ptr
CCMAIL: kde-bindings at kde.org
M +7 -0 ChangeLog
M +1 -0 src/lib/Qt/qtruby4.rb
--- trunk/KDE/kdebindings/ruby/qtruby/ChangeLog #795458:795459
@@ -1,3 +1,10 @@
+2008-04-10 Richard Dale <richard.j.dale at gmail.com>
+
+ * When matching arg types, strip off an '::Ptr' or 'Ptr' at the end
+ of the type. This is to ensure that something like a KDE::Service
+ ruby instance can be passed to a method expecting a type of
+ KService::Ptr
+
2008-04-07 Richard Dale <richard.j.dale at gmail.com>
* Added a QTRUBY_FUNCALL2 macro. If QtRuby is built with the
--- trunk/KDE/kdebindings/ruby/qtruby/src/lib/Qt/qtruby4.rb #795458:795459
@@ -2367,6 +2367,7 @@
end
else
t = typename.sub(/^const\s+/, '')
+ t.sub!(/(::)?Ptr$/, '')
t.sub!(/[&*]$/, '')
if argtype == t
return 1
More information about the Kde-bindings
mailing list