forked from qt-creator/qt-creator
JsExpander: Do not crash on exit
Change-Id: I55caca6dd5b316b2573b443175448d732101871c Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -45,7 +45,7 @@ class CppToolsJsExtension : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CppToolsJsExtension(QObject *parent) : QObject(parent) { }
|
||||
CppToolsJsExtension(QObject *parent = 0) : QObject(parent) { }
|
||||
|
||||
// Generate header guard:
|
||||
Q_INVOKABLE QString headerGuard(const QString &in) const;
|
||||
|
||||
@@ -146,7 +146,7 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
|
||||
modelManager->updateSourceFiles(files.toSet());
|
||||
});
|
||||
|
||||
JsExpander::registerQObjectForJs(QLatin1String("Cpp"), new CppToolsJsExtension(this));
|
||||
JsExpander::registerQObjectForJs(QLatin1String("Cpp"), new CppToolsJsExtension);
|
||||
|
||||
CppLocatorData *locatorData = new CppLocatorData;
|
||||
connect(modelManager, SIGNAL(documentUpdated(CPlusPlus::Document::Ptr)),
|
||||
|
||||
Reference in New Issue
Block a user