src/INICommand.cpp
branchv_0
changeset 35 930f17f16fd7
parent 33 3b81fbeb5f3b
--- a/src/INICommand.cpp	Tue Sep 21 21:02:43 2021 +0200
+++ b/src/INICommand.cpp	Wed Sep 29 00:54:55 2021 +0200
@@ -33,6 +33,7 @@
 #include "lib/BackspaceUnescapingProcessor.h"
 #include "lib/JavaPropertiesUnescapingProcessor.h"
 #include "lib/JavaPropertiesDialect.h"
+#include "lib/JavaManifestMFDialect.h"
 
 using namespace std;
 using namespace relpipe::writer;
@@ -177,7 +178,7 @@
 	reader->addUnescapingProcessor(std::make_shared<JavaPropertiesUnescapingProcessor>(), unescaping::JavaProperties, false);
 	reader->addUnescapingProcessor(std::make_shared<BackspaceUnescapingProcessor>(), unescaping::Backspace, true);
 	reader->addDialect(std::make_shared<JavaPropertiesDialect>(), dialect::JavaProperties, false);
-	reader->addDialect(std::make_shared<JavaPropertiesDialect>(), dialect::JavaManifestMF, false);
+	reader->addDialect(std::make_shared<JavaManifestMFDialect>(), dialect::JavaManifestMF, false);
 	reader->addHandler(&handler);
 	// TODO: smart pointers vs. references: are we going to call addUnescapingProcessor() dynamically/conditionally or share instances? Then pointers will be better.
 	for (ParserOptionRecipe option : configuration.parserOptions) reader->setOption(convertor.to_bytes(option.uri), convertor.to_bytes(option.value));