diff options
author | hjk <hjk@qt.io> | 2017-01-31 17:37:13 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-02-03 15:37:56 +0000 |
commit | 5b50854e57cfaf29a1aaeadd2b2f945b612b8967 (patch) | |
tree | 80b9a2f1ad0ab90b29d7ca9fb713c957b99fe0ef /src/plugins/projectexplorer/extracompiler.h | |
parent | 79e73ea4eedf00ce504ffd93ada602b9515ad7fb (diff) |
ProjectExplorer: Use more concise code to register extra compilers
Saves some line noise and a function.
(void) new Foo(this); is not really a new pattern in Creator code,
but a bit of a new pattern for "registering things".
Change-Id: Ie1bb409ed77bc20833fc07ca14715b9ecbc9bd5d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/extracompiler.h')
-rw-r--r-- | src/plugins/projectexplorer/extracompiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/extracompiler.h b/src/plugins/projectexplorer/extracompiler.h index 21efd6b29f..67cccc60f4 100644 --- a/src/plugins/projectexplorer/extracompiler.h +++ b/src/plugins/projectexplorer/extracompiler.h @@ -143,6 +143,7 @@ class PROJECTEXPLORER_EXPORT ExtraCompilerFactory : public QObject Q_OBJECT public: explicit ExtraCompilerFactory(QObject *parent = nullptr); + ~ExtraCompilerFactory(); virtual FileType sourceType() const = 0; virtual QString sourceTag() const = 0; @@ -150,7 +151,6 @@ public: virtual ExtraCompiler *create(const Project *project, const Utils::FileName &source, const Utils::FileNameList &targets) = 0; - static void registerExtraCompilerFactory(ExtraCompilerFactory *factory); static QList<ExtraCompilerFactory *> extraCompilerFactories(); }; |