summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-04-26 17:42:07 +0200
committerhjk <hjk@qt.io>2018-04-27 12:12:37 +0000
commit50f2bcd9aeac17450847dd63ce595372317dbfcf (patch)
treec3e184ff57c0e1ec0fc168917f51fc70863124a5 /src/plugins/pythoneditor/pythoneditorplugin.cpp
parentf0baf01a2e2089c00cda6db42a3131c0a1af8cf1 (diff)
downloadqt-creator-50f2bcd9aeac17450847dd63ce595372317dbfcf.tar.gz
Python: Plugin code cosmetics
Use the common pattern for PythonEditorPluginPrivate. Change-Id: Icec8d975e0ab921be7121d123af4dddecd7d0384 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
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);