summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp
index aabe9e9bc3..69f7d71823 100644
--- a/src/plugins/pythoneditor/pythoneditorplugin.cpp
+++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp
@@ -654,12 +654,9 @@ public:
PythonRunConfigurationFactory runConfigFactory;
};
-static PythonEditorPluginPrivate *dd = nullptr;
-
PythonEditorPlugin::~PythonEditorPlugin()
{
- delete dd;
- dd = nullptr;
+ delete d;
}
bool PythonEditorPlugin::initialize(const QStringList &arguments, QString *errorMessage)
@@ -667,7 +664,7 @@ bool PythonEditorPlugin::initialize(const QStringList &arguments, QString *error
Q_UNUSED(arguments)
Q_UNUSED(errorMessage)
- dd = new PythonEditorPluginPrivate;
+ d = new PythonEditorPluginPrivate;
ProjectManager::registerProjectType<PythonProject>(PythonMimeType);