From 518028765c892b7a6a840cca92376ccc8b77b04c Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Thu, 3 Sep 2009 18:48:57 -0300 Subject: Fixed assert failure when using qtdocgenerator. Added a default implementation for Generator::subDirectoryForClass. This breaks the binary compatibility but NOT the source compatibility. --- generator.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'generator.h') diff --git a/generator.h b/generator.h index 06dca5074..4c6236c8f 100644 --- a/generator.h +++ b/generator.h @@ -137,7 +137,7 @@ public: virtual bool shouldGenerate(const AbstractMetaClass *) const; /// Returns the subdirectory used to write the binding code of an AbstractMetaClass. - virtual QString subDirectoryForClass(const AbstractMetaClass* clazz) const = 0; + virtual QString subDirectoryForClass(const AbstractMetaClass* clazz) const; /** * Translate metatypes to binding source format. @@ -251,12 +251,7 @@ protected: * or nothing the use the name of the currently processed package * /return a string representing the subdirectory path for the given package */ - virtual QString subDirectoryForPackage(QString packageName = QString()) const - { - if (packageName.isEmpty()) - packageName = m_packageName; - return QString(packageName).replace(".", QDir::separator()); - } + virtual QString subDirectoryForPackage(QString packageName = QString()) const; /** * Write the bindding code for an AbstractMetaClass. -- cgit v1.2.3