diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-10-16 17:15:09 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-10-16 18:42:51 +0200 |
| commit | 1ab486b0d8ed714535e8428ab6ffbbd567a40f74 (patch) | |
| tree | b4080c0f729598dde342f799df86036c1e0b296d /src/context.hh | |
| parent | f8abbfbb4487ad3630add33f61716ed01ca0bdf6 (diff) | |
verious refactoring
Diffstat (limited to 'src/context.hh')
| -rw-r--r-- | src/context.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/context.hh b/src/context.hh index 7b03708e..ed921580 100644 --- a/src/context.hh +++ b/src/context.hh @@ -20,8 +20,8 @@ struct Context explicit Context(Editor& editor) : m_editor(&editor) {} - explicit Context(Client& client) - : m_client(&client) {} + Context(Client& client, Editor& editor, UserInterface& ui) + : m_client(&client), m_editor(&editor), m_ui(&ui) {} // to allow func(Context(Editor(...))) // make sure the context will not survive the next ';' @@ -29,6 +29,7 @@ struct Context : m_editor(&editor) {} Context(const Context&) = delete; + Context(Context&&) = default; Context& operator=(const Context&) = delete; Buffer& buffer() const |
