[Kde-bindings] KDE/kdebindings/php/phpqt/src
Thomas Moenicke
tm at php-qt.org
Fri Oct 24 21:11:29 UTC 2008
SVN commit 875581 by moenicke:
* fixed return value when unmapping smokephp objects
CCMAIL: kde-bindings at kde.org
M +3 -1 phpqt_internals.cpp
--- trunk/KDE/kdebindings/php/phpqt/src/phpqt_internals.cpp #875580:875581
@@ -356,7 +356,7 @@
bool PHPQt::unmapSmokePHPObject(smokephp_object* o)
{
pDebug( PHPQt::MapPtr ) << "unmapping" << o->ptr() << " o: " << o;
- SmokeQtObjects.remove( o->ptr() );
+ return SmokeQtObjects.remove( o->ptr() );
}
void
@@ -493,6 +493,8 @@
if( PHPQt::getMocData( this_ptr, o->parent_ce_ptr()->name, superdata, &phpqt_meta_stringdata, phpqt_meta_data ) )
{
const char* phpqt_meta_stringdata_ = estrndup(phpqt_meta_stringdata.toAscii(), phpqt_meta_stringdata.size());
+// QByteArray* phpqt_meta_stringdata_ = new QByteArray( phpqt_meta_stringdata.toAscii() );
+
QMetaObject ob = { { superdata, phpqt_meta_stringdata_, phpqt_meta_data, 0 } };
QMetaObject* m = new QMetaObject;
memcpy(m, &ob, sizeof(ob));
More information about the Kde-bindings
mailing list