forked from qt-creator/qt-creator
CppEditor: Do not add QuickFixFactories to object pool anymore
Not needed anymore. Also some cleanup, no 'using' in headers etc. Change-Id: I8c4547d80d0c0ffd989d1efbc74687c9f56096a4 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
using namespace Core;
|
||||
using namespace TextEditor;
|
||||
using namespace Utils;
|
||||
using namespace CppTools;
|
||||
|
||||
namespace CppEditor {
|
||||
namespace Internal {
|
||||
@@ -128,6 +129,7 @@ CppEditorPlugin::CppEditorPlugin() :
|
||||
|
||||
CppEditorPlugin::~CppEditorPlugin()
|
||||
{
|
||||
destroyCppQuickFixes();
|
||||
m_instance = 0;
|
||||
}
|
||||
|
||||
@@ -152,7 +154,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
|
||||
&CppEditor::decorateEditor);
|
||||
|
||||
m_quickFixProvider = new CppQuickFixAssistProvider(this);
|
||||
registerQuickFixes(this);
|
||||
createCppQuickFixes();
|
||||
|
||||
Context context(Constants::CPPEDITOR_ID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user