src/INICommand.cpp
branchv_0
changeset 5 d70ea23682aa
parent 2 f031a4dc7c52
child 6 fb717cfbfea1
--- a/src/INICommand.cpp	Sun Nov 22 12:24:25 2020 +0100
+++ b/src/INICommand.cpp	Sun Nov 22 19:22:25 2020 +0100
@@ -70,7 +70,7 @@
 		if (configuration.enableEventNumbers) metadata.push_back({L"event", TypeId::INTEGER});
 		if (configuration.enableSections) metadata.push_back({L"section", TypeId::STRING});
 		metadata.push_back({L"key", TypeId::STRING});
-		if (configuration.enableSubkeys) metadata.push_back({L"subkey", TypeId::STRING});
+		if (configuration.enableSubKeys) metadata.push_back({L"sub_key", TypeId::STRING});
 		metadata.push_back({L"value", TypeId::STRING});
 		if (configuration.enableComments) metadata.push_back({L"comment", TypeId::STRING});
 		writer->startRelation(configuration.relation, metadata, true);
@@ -93,12 +93,12 @@
 		if (configuration.enableEventNumbers) writer->writeAttribute(&event.eventNumber, typeid (event.eventNumber));
 
 		std::string section = getCurrentSectionFullName();
-		std::string key = configuration.enableSubkeys ? event.key : event.fullKey;
+		std::string key = configuration.enableSubKeys ? event.key : event.fullKey;
 
 		if (configuration.enableSections) writer->writeAttribute(convertor.from_bytes(section));
 		else if (section.size()) key = section + "/" + key;
 		writer->writeAttribute(convertor.from_bytes(key));
-		if (configuration.enableSubkeys) writer->writeAttribute(convertor.from_bytes(event.subKey));
+		if (configuration.enableSubKeys) writer->writeAttribute(convertor.from_bytes(event.subKey));
 
 		writer->writeAttribute(convertor.from_bytes(event.value));
 		if (configuration.enableComments) writer->writeAttribute(convertor.from_bytes(event.comment));