[Kde-bindings] KDE/kdebindings/php/phpqt/src
Kevin Kofler
kevin.kofler at chello.at
Sat Dec 19 15:58:06 UTC 2009
SVN commit 1063934 by kkofler:
php-qt: Fix build with the latest smoke.h. Revision 1061660 added constructors to the Smoke::ModuleIndex struct, but this means you now have to use constructor syntax to initialize them rather than C-style struct initializers.
Tested in Fedora's build system (Koji), see kdebindings-4.3.85-2.fc13.
CCMAIL: kde-bindings at kde.org
M +1 -1 handlers.cpp
M +1 -1 phpqt_internals.cpp
--- trunk/KDE/kdebindings/php/phpqt/src/handlers.cpp #1063933:1063934
@@ -68,7 +68,7 @@
char *ccArg = new char[classNameLen + 8];
sprintf(ccArg, "const %s&", className);
- const Smoke::ModuleIndex classIdx = { o->smoke(), o->classId() };
+ const Smoke::ModuleIndex classIdx(o->smoke(), o->classId());
Smoke::ModuleIndex ccMeth = o->smoke()->findMethod( classIdx, ccId );
--- trunk/KDE/kdebindings/php/phpqt/src/phpqt_internals.cpp #1063933:1063934
@@ -242,7 +242,7 @@
void PHPQt::createMetaObject(smokephp_object* o, zval* this_ptr)
{
const Smoke::ModuleIndex nameId = o->smoke()->idMethodName("metaObject");
- const Smoke::ModuleIndex classIdx = { o->smoke(), o->classId() };
+ const Smoke::ModuleIndex classIdx(o->smoke(), o->classId());
const Smoke::ModuleIndex meth = o->smoke()->findMethod( classIdx, nameId );
const Smoke::Method &methodId = o->smoke()->methods[ o->smoke()->methodMaps[ meth.index ].method ];
const Smoke::ClassFn fn = o->smoke()->classes[methodId.classId].classFn;
More information about the Kde-bindings
mailing list