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:
hjk
2018-01-26 16:43:01 +01:00
parent c4b3779b42
commit 289f2b170a
6 changed files with 68 additions and 72 deletions

View File

@@ -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);