--- a/src/INIWriter.h Sat Dec 04 21:14:52 2021 +0100
+++ b/src/INIWriter.h Fri Aug 26 22:42:04 2022 +0200
@@ -105,7 +105,7 @@
else if (type == EscapingProcessor::TextType::EntryValue) quotingType = quotingForValues.findEffectiveQuotingType(value);
else quotingType = EscapingProcessor::QuotingType::None;
- for (ConfiguredEscapingProcessor p : escapingProcessors) if (p.enbaled) result = p.processor->escape(result, type, quotingType);
+ for (ConfiguredEscapingProcessor p : escapingProcessors) if (p.enabled) result = p.processor->escape(result, type, quotingType);
if (quotingType == EscapingProcessor::QuotingType::Quotes) result = L"\"" + result + L"\"";
else if (quotingType == EscapingProcessor::QuotingType::Apostrophes) result = L"'" + result + L"'";
@@ -117,9 +117,9 @@
public:
std::shared_ptr<EscapingProcessor> processor;
const relpipe::common::type::StringX uri;
- bool enbaled;
+ bool enabled;
- ConfiguredEscapingProcessor(std::shared_ptr<EscapingProcessor> processor, const relpipe::common::type::StringX uri, bool enbaled) : processor(processor), uri(uri), enbaled(enbaled) {
+ ConfiguredEscapingProcessor(std::shared_ptr<EscapingProcessor> processor, const relpipe::common::type::StringX uri, bool enabled) : processor(processor), uri(uri), enabled(enabled) {
}
};
@@ -129,7 +129,7 @@
bool setEscaping(const relpipe::common::type::StringX& uri, const relpipe::common::type::StringX& value) {
for (ConfiguredEscapingProcessor& p : escapingProcessors) {
if (p.uri == uri) {
- p.enbaled = parseBoolean(value);
+ p.enabled = parseBoolean(value);
return true;
}
}