forked from qt-creator/qt-creator
Give TextEditorActionHandler an explicit parent and unify usage.
The action handler implicitly passed ownership to ICore, which is non- to the action handler. We now consistently create the action handler in the editor factory, give ownership to the editor factory, and don't hold a reference to it. Change-Id: I4372f8de966e3ceff87c06c5528c6b54522c1d57 Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -42,10 +42,6 @@ namespace Utils {
|
||||
class JsonSchemaManager;
|
||||
}
|
||||
|
||||
namespace TextEditor {
|
||||
class TextEditorActionHandler;
|
||||
} // namespace TextEditor
|
||||
|
||||
namespace Core {
|
||||
class Command;
|
||||
class ActionContainer;
|
||||
@@ -115,7 +111,6 @@ private:
|
||||
|
||||
QmlJS::ModelManagerInterface *m_modelManager;
|
||||
QmlJSEditorFactory *m_editor;
|
||||
TextEditor::TextEditorActionHandler *m_actionHandler;
|
||||
QmlJSQuickFixAssistProvider *m_quickFixAssistProvider;
|
||||
QmlTaskManager *m_qmlTaskManager;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user