[Kde-bindings] KDE/kdebindings/ruby/qtruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Fri Dec 12 14:52:18 UTC 2008
SVN commit 896114 by rdale:
* When resolving overloaded methods with 'uchar*' and 'const uchar*' arg
types prefer the non-const version of the arg. Thanks to Davor Ocelic
for explaining why this was a good idea in the case of the Qt::Image
constructors.
CCMAIL: kde-bindings at kde.org
M +6 -0 ChangeLog
M +2 -2 src/lib/Qt/qtruby4.rb
--- trunk/KDE/kdebindings/ruby/qtruby/ChangeLog #896113:896114
@@ -1,3 +1,9 @@
+2008-12-12 Richard Dale <richard.j.dale at gmail.com>
+ * When resolving overloaded methods with 'uchar*' and 'const uchar*' arg
+ types prefer the non-const version of the arg. Thanks to Davor Ocelic
+ for explaining why this was a good idea in the case of the Qt::Image
+ constructors.
+
2008-12-11 Richard Dale <richard.j.dale at gmail.com>
* Make some changes from the patch at
http://napalm.sf.cz/qt4-qtruby-ruby1.9.patch to make it easier to port
--- trunk/KDE/kdebindings/ruby/qtruby/src/lib/Qt/qtruby4.rb #896113:896114
@@ -2447,9 +2447,9 @@
if typename =~ /^(const )?((QChar)[*&]?)$/
return 3
elsif typename =~ /^(?:u?char\*)$/
+ return 2
+ elsif typename =~ /^(?:const u?char\*)$/
return 1
- elsif typename =~ /^(?:const u?char\*)$/
- return 2
elsif typename =~ /^(?:(?:const )?(QString)[*&]?)$/
return 4
end
More information about the Kde-bindings
mailing list