aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtsupport/qscxmlcgenerator.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2016-03-14 10:58:55 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-03-14 10:55:34 +0000
commitb6c1e58f58658a97dfd11ec150e2fddcec366944 (patch)
treeec93f0dc7b2022d7a88876c08f6028a7ca09d33f /src/plugins/qtsupport/qscxmlcgenerator.h
parentee729091fdee19261dacb7d037c367eded585788 (diff)
ExtraCompiler: Parent extra compilers to plugins
Previously the extra compilers were never destructed. As any plugin that registers an extra compiler factory has to depend on ProjectExplorer, it will delete its factory before ProjectExplorer is unloaded. So, removing the extra compiler from the list on destroyed() is safe. Change-Id: I22fbe662a5704c0294512b8774acb85745c1cbe5 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/qtsupport/qscxmlcgenerator.h')
-rw-r--r--src/plugins/qtsupport/qscxmlcgenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qtsupport/qscxmlcgenerator.h b/src/plugins/qtsupport/qscxmlcgenerator.h
index cb375999c64..1c52f0410db 100644
--- a/src/plugins/qtsupport/qscxmlcgenerator.h
+++ b/src/plugins/qtsupport/qscxmlcgenerator.h
@@ -58,6 +58,8 @@ class QScxmlcGeneratorFactory : public ProjectExplorer::ExtraCompilerFactory
{
Q_OBJECT
public:
+ QScxmlcGeneratorFactory(QObject *parent = 0) : ExtraCompilerFactory(parent) {}
+
ProjectExplorer::FileType sourceType() const override;
QString sourceTag() const override;