From 4cb7ca42003c177e3acc80075d7594e555966106 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 18 Oct 2024 16:37:02 +0200 Subject: fix command design pattern --- OpenFileGUICommand.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenFileGUICommand.h') diff --git a/OpenFileGUICommand.h b/OpenFileGUICommand.h index 9b504a9..1990ce7 100644 --- a/OpenFileGUICommand.h +++ b/OpenFileGUICommand.h @@ -2,10 +2,18 @@ #include "Command.h" +class Museum; +class View; + class OpenFileGUICommand : public Command { - using Command::Command; +public: + OpenFileGUICommand(Museum & m, View & v); public: virtual void execute(); + +private: + Museum & museum; + View & view; }; -- cgit v1.2.3