TextEditorPlugin: Pimpl and remove uses of global object pool

Change-Id: I17eb0e928788f02f6089fd2a2ed2393d7f577d11
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2018-02-06 14:00:12 +01:00
parent 0bbf224667
commit 58a168db82
4 changed files with 51 additions and 57 deletions

View File

@@ -81,8 +81,7 @@ public:
static TextEditorSettingsPrivate *d = 0;
static TextEditorSettings *m_instance = 0;
TextEditorSettings::TextEditorSettings(QObject *parent)
: QObject(parent)
TextEditorSettings::TextEditorSettings()
{
QTC_ASSERT(!m_instance, return);
m_instance = this;