diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-22 14:00:41 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-22 14:00:41 +0200 |
commit | bc02054d56118110a36aea72d21f9d5e73d07d1f (patch) | |
tree | 2fc49dd3f93307df6242b8e63bca0e26b2e62168 /LoadFilesCommand.cpp | |
parent | fab0fccc0aaa18e915bcd08e81e5a04177e435cd (diff) |
refactor file reading factory
Diffstat (limited to 'LoadFilesCommand.cpp')
-rw-r--r-- | LoadFilesCommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<FileReader> file = FileReaderFactory::open(url); + unique_ptr<FileReader> file = FileReaderFactory().create(url); try { ParserFactory::parse(*file, deserializer); } catch (Exception & e) { |