From ac7e437730ecbe32f9e4e168a3ee4a7b7f3cd761 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 12 Sep 2013 23:39:34 +0200 Subject: Move Client responsibilities to InputHandler InputHandler owns it's UserInterface, and is directly stored by the ClientManager. --- src/input_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index cd048482..407324eb 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -914,8 +914,8 @@ InputMode& InputMode::reset_normal_mode() } -InputHandler::InputHandler(UserInterface& ui) - : m_context(*this, ui), m_mode(new InputModes::Normal(*this)) +InputHandler::InputHandler(std::unique_ptr&& ui, Editor& editor, String name) + : m_ui(std::move(ui)), m_context(*this, editor), m_mode(new InputModes::Normal(*this)), m_name(name) { } -- cgit v1.2.3