aboutsummaryrefslogtreecommitdiff
path: root/LoadFilesCommand.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-22 14:00:41 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-22 14:00:41 +0200
commitbc02054d56118110a36aea72d21f9d5e73d07d1f (patch)
tree2fc49dd3f93307df6242b8e63bca0e26b2e62168 /LoadFilesCommand.cpp
parentfab0fccc0aaa18e915bcd08e81e5a04177e435cd (diff)
refactor file reading factory
Diffstat (limited to 'LoadFilesCommand.cpp')
-rw-r--r--LoadFilesCommand.cpp2
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) {