kross doesn't build

Andreas Pakulat apaku at gmx.de
Fri Aug 15 17:51:09 UTC 2008


Hi,

apparently the newly checked in generated kross files don't compile.
Apart from producing extra ";" after Q_FLAGS and Q_ENUMS the generator
also seems to produce wrong code:

[ 96%] Building CXX object kross/CMakeFiles/kdevkrossplugin.dir/wrappers/krossidentifier.o
/home/andreas/KDE-work/4.0/kdevplatform/kross/wrappers/krossidentifier.cpp: In function ‘QVariant Handlers::_kDevelopQualifiedIdentifierHandler(void*)’:
/home/andreas/KDE-work/4.0/kdevplatform/kross/wrappers/krossidentifier.cpp:210: error: cannot dynamic_cast ‘t’ (of type ‘class KDevelop::QualifiedIdentifier*’) to type ‘class KDevelop::TypeIdentifier*’ (source type is not polymorphic)
make[2]: *** [kross/CMakeFiles/kdevkrossplugin.dir/wrappers/krossidentifier.o] Fehler 1
make[1]: *** [kross/CMakeFiles/kdevkrossplugin.dir/all] Fehler 2

The function in question looks like this here:
,----
|205:  QVariant _kDevelopQualifiedIdentifierHandler(void* type)
|206:  {
|207:      if(!type) return QVariant();
|208:  	   KDevelop::QualifiedIdentifier* t=static_cast<KDevelop::QualifiedIdentifier*>(type);
|209:  	   Q_ASSERT(dynamic_cast<KDevelop::QualifiedIdentifier*>(t));
|210:  	   if(dynamic_cast<KDevelop::TypeIdentifier*>(t)) return Handlers::_kDevelopQualifiedIdentifierHandler((void*) type);
|211:  	   else return qVariantFromValue((QObject*) new KrossKDevelopQualifiedIdentifier(t, 0));
|212:  }
`----

Andreas

-- 
You will be married within a year, and divorced within two.




More information about the KDevelop-devel mailing list