summaryrefslogtreecommitdiff
path: root/src/context.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-04-19 18:47:52 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-04-19 18:47:52 +0100
commitddd70fd09adc0c93205bd1b436daace101d773fc (patch)
tree1164df527472908561f95b159c04bdce1f0e21a7 /src/context.hh
parentf714766854047728a029655bfd7c8af6aea53833 (diff)
Make empty context construction more explicit
Diffstat (limited to 'src/context.hh')
-rw-r--r--src/context.hh4
1 files changed, 3 insertions, 1 deletions
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;