forked from qt-creator/qt-creator
texteditor: no need to store the wizard as plugin member
Change-Id: I4ce41f516bd361c0c58b6a0f0f3fd541126f0620 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -79,7 +79,6 @@ TextEditorPlugin *TextEditorPlugin::m_instance = 0;
|
||||
|
||||
TextEditorPlugin::TextEditorPlugin()
|
||||
: m_settings(0),
|
||||
m_wizard(0),
|
||||
m_editorFactory(0),
|
||||
m_lineNumberFilter(0),
|
||||
m_searchResultWindow(0)
|
||||
@@ -112,11 +111,11 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
|
||||
wizardParameters.setDisplayName(tr("Text File"));
|
||||
wizardParameters.setCategory(QLatin1String("U.General"));
|
||||
wizardParameters.setDisplayCategory(tr("General"));
|
||||
m_wizard = new TextFileWizard(QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_TEXT),
|
||||
QLatin1String("text$"),
|
||||
wizardParameters);
|
||||
TextFileWizard *wizard = new TextFileWizard(QLatin1String(Constants::C_TEXTEDITOR_MIMETYPE_TEXT),
|
||||
QLatin1String("text$"),
|
||||
wizardParameters);
|
||||
// Add text file wizard
|
||||
addAutoReleasedObject(m_wizard);
|
||||
addAutoReleasedObject(wizard);
|
||||
|
||||
m_settings = new TextEditorSettings(this);
|
||||
|
||||
|
@@ -44,7 +44,6 @@ namespace TextEditor {
|
||||
class FontSettings;
|
||||
class PlainTextEditorWidget;
|
||||
class TextEditorSettings;
|
||||
class TextFileWizard;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
@@ -81,7 +80,6 @@ private slots:
|
||||
private:
|
||||
static TextEditorPlugin *m_instance;
|
||||
TextEditorSettings *m_settings;
|
||||
TextFileWizard *m_wizard;
|
||||
PlainTextEditorFactory *m_editorFactory;
|
||||
LineNumberFilter *m_lineNumberFilter;
|
||||
Find::SearchResultWindow *m_searchResultWindow;
|
||||
|
Reference in New Issue
Block a user