From ddd70fd09adc0c93205bd1b436daace101d773fc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 19 Apr 2015 18:47:52 +0100 Subject: Make empty context construction more explicit --- src/context.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/context.cc') diff --git a/src/context.cc b/src/context.cc index bd67a6b3..df8210f8 100644 --- a/src/context.cc +++ b/src/context.cc @@ -9,7 +9,6 @@ namespace Kakoune { -Context::Context() = default; Context::~Context() = default; Context::Context(InputHandler& input_handler, SelectionList selections, @@ -20,6 +19,8 @@ Context::Context(InputHandler& input_handler, SelectionList selections, m_name(std::move(name)) {} +Context::Context(EmptyContextFlag) {} + Buffer& Context::buffer() const { if (not has_buffer()) -- cgit v1.2.3