From bc02054d56118110a36aea72d21f9d5e73d07d1f Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 22 Oct 2024 14:00:41 +0200 Subject: refactor file reading factory --- LoadFilesCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LoadFilesCommand.cpp') diff --git a/LoadFilesCommand.cpp b/LoadFilesCommand.cpp index 82ede60..3fb4978 100644 --- a/LoadFilesCommand.cpp +++ b/LoadFilesCommand.cpp @@ -28,7 +28,7 @@ void LoadFilesCommand::load_files() { MuseumDeserializer deserializer { this->museum }; for (string url : files) { - unique_ptr file = FileReaderFactory::open(url); + unique_ptr file = FileReaderFactory().create(url); try { ParserFactory::parse(*file, deserializer); } catch (Exception & e) { -- cgit v1.2.3