[Kde-bindings] branches/KDE/4.4/kdebindings/ruby/qtruby/src
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Jan 28 16:19:12 UTC 2010
SVN commit 1081526 by rdale:
* Use Smoke::findClass() to look up the classId of an item in a list when
marshalling value lists. Fixes a bug reported by David Palacio
CCMAIL: kde-bindings at kde.org
M +3 -3 marshall_macros.h
--- branches/KDE/4.4/kdebindings/ruby/qtruby/src/marshall_macros.h #1081525:1081526
@@ -229,8 +229,8 @@
VALUE av = rb_ary_new();
- int ix = m->smoke()->idClass(ItemSTR).index;
- const char * className = qtruby_modules[m->smoke()].binding->className(ix);
+ Smoke::ModuleIndex classId = Smoke::findClass(ItemSTR);
+ const char * className = qtruby_modules[m->smoke()].binding->className(classId.index);
for(int i=0; i < valuelist->size() ; ++i) {
void *p = (void *) &(valuelist->at(i));
@@ -244,7 +244,7 @@
if(obj == Qnil) {
smokeruby_object * o = alloc_smokeruby_object( false,
m->smoke(),
- m->smoke()->idClass(ItemSTR).index,
+ classId.index,
p );
obj = set_obj_info(className, o);
}
More information about the Kde-bindings
mailing list