src/INIDispatchHandler.h
branchv_0
changeset 1 e04e5bbc147b
parent 0 1bb084f84eb9
child 3 ae8775e0bc7a
--- a/src/INIDispatchHandler.h	Wed Dec 09 17:55:03 2020 +0100
+++ b/src/INIDispatchHandler.h	Wed Dec 09 23:53:30 2020 +0100
@@ -35,6 +35,7 @@
 #include "INIWriter.h"
 #include "INIStandardHandler.h"
 #include "INILiteralHandler.h"
+#include "INISectionFirstHandler.h"
 
 namespace relpipe {
 namespace out {
@@ -65,7 +66,7 @@
 			if (std::regex_match(name, std::wregex(rc.relation))) {
 				if (rc.style == Style::Standard) return new INIStandardHandler(writer);
 				else if (rc.style == Style::Literal) return new INILiteralHandler(writer);
-				else if (rc.style == Style::LiteralWithSectionAttribute) return new INILiteralHandler(writer, L"section");
+				else if (rc.style == Style::SectionFirst) return new INISectionFirstHandler(writer);
 				else if (rc.style == Style::Dropped) return nullptr;
 				else if (rc.style == Style::Automatic) return createHandlerAuto(name, attributes);
 				else throw std::invalid_argument("Unsupported style: " + std::to_string((int) rc.style));