aboutsummaryrefslogtreecommitdiff
path: root/LoadFilesCommand.cpp
diff options
context:
space:
mode:
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) {