Mercurial > projects > qtd
diff generator/abstractmetabuilder.cpp @ 259:515d6e1c7b10 lifetime
another iteration
author | maxter |
---|---|
date | Thu, 17 Sep 2009 16:28:41 +0000 |
parents | 17b5e13364b7 |
children | b5773ccab07d |
line wrap: on
line diff
--- a/generator/abstractmetabuilder.cpp Wed Sep 16 14:16:33 2009 +0000 +++ b/generator/abstractmetabuilder.cpp Thu Sep 17 16:28:41 2009 +0000 @@ -58,6 +58,8 @@ #include <QtCore/QTextStream> #include <QtCore/QVariant> +#include <iostream> + static QString strip_template_args(const QString &name) { int pos = name.indexOf('<'); @@ -1310,8 +1312,18 @@ meta_class->setHasNonPrivateConstructor(true); } - if (meta_function->isDestructor() && !meta_function->isFinal()) - meta_class->setHasVirtualDestructor(true); + if (meta_function->isDestructor()) + { + if (meta_class->name() == "QFSFileEngine") + { + std::cout << meta_function->isFinal() << std::endl; + std::cout << qPrintable(meta_function->name()) << std::endl; + qFatal("Gop"); + } + + if (!meta_function->isFinal()) + meta_class->setHasVirtualDestructor(true); + } if (!meta_function->isDestructor() && !meta_function->isInvalid()