[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: [Kde-bindings] branches/KDE/4.4/kdebindings/ruby/qtruby/src
From: Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date: 2010-01-28 16:19:12
Message-ID: 1264695552.764934.6180.nullmailer () svn ! kde ! org
[Download RAW message or body]
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@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);
}
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic