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.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/context.hh') diff --git a/src/context.hh b/src/context.hh index 48b01a87..e2f45cc1 100644 --- a/src/context.hh +++ b/src/context.hh @@ -63,9 +63,11 @@ public: Transient = 1, }; - Context(); Context(InputHandler& input_handler, SelectionList selections, Flags flags, String name = ""); + + struct EmptyContextFlag {}; + explicit Context(EmptyContextFlag); ~Context(); Context(const Context&) = delete; -- cgit v1.2.3