TextEditor: Initialize all members

Creator can start to shutdown before initialize is called. This should
be safe here right now, but let's not take chances in case somebody
refactors this later.

Change-Id: I961c215b8dffc92cf90d9f83e91b0b3034772077
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Tobias Hunger
2016-12-05 14:06:43 +01:00
parent 87b29eeaad
commit 9dab028fa8
2 changed files with 4 additions and 6 deletions

View File

@@ -71,8 +71,6 @@ static const char kCurrentDocumentFontSize[] = "CurrentDocument:FontSize";
static TextEditorPlugin *m_instance = 0;
TextEditorPlugin::TextEditorPlugin()
: m_settings(0),
m_lineNumberFilter(0)
{
QTC_ASSERT(!m_instance, return);
m_instance = this;