From d66cd676a299d839cf509f2267115e3d28d291ba Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 Oct 2022 19:14:07 +0100 Subject: Add explicit constructor to Mode to initialise target --- ui/modeHelper.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/modeHelper.hpp') diff --git a/ui/modeHelper.hpp b/ui/modeHelper.hpp index 508beed..77707f2 100644 --- a/ui/modeHelper.hpp +++ b/ui/modeHelper.hpp @@ -6,6 +6,8 @@ union SDL_Event; enum ModeSecondClick { Unset, Reset, NoAction }; template class Mode { public: + explicit Mode(Target & t) : target {t} { } + Target & target; template -- cgit v1.2.3