diff options
Diffstat (limited to 'generator.h')
-rw-r--r-- | generator.h | 9 |
1 files changed, 2 insertions, 7 deletions
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. |