diff options
Diffstat (limited to 'LoadFilesCommand.cpp')
-rw-r--r-- | LoadFilesCommand.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LoadFilesCommand.cpp b/LoadFilesCommand.cpp index 05b1311..6bcf7da 100644 --- a/LoadFilesCommand.cpp +++ b/LoadFilesCommand.cpp @@ -6,7 +6,7 @@ #include "Exception.h" #include "FileReader.h" #include "FileStrategy.h" -#include "Museum.h" +#include "MuseumPauseCommand.h" #include "Parser.h" using namespace std; @@ -28,7 +28,7 @@ void LoadFilesCommand::execute(vector<string> files) { } void LoadFilesCommand::load_files(vector<string> files) { - this->get_museum().set_pause(true); + MuseumPauseCommand(this).set(true); Deserializer deserializer { this->get_museum() }; for (string url : files) { @@ -40,6 +40,6 @@ void LoadFilesCommand::load_files(vector<string> files) { } } - this->get_museum().set_pause(false); + MuseumPauseCommand(this).set(false); } |