code reformatted .

This commit is contained in:
Zero Fanker 2024-04-16 20:51:17 -04:00
parent 76d336504f
commit 1de6ad56c2
265 changed files with 18240 additions and 21591 deletions

View file

@ -164,8 +164,8 @@ public:
}
void Insert(const CString& key, CString&& value) {
value_pairs.push_back({ key, value });
value_pos.insert_or_assign(key, value_pairs.size() - 1);
value_pairs.push_back({ key, value });
value_pos.insert_or_assign(key, value_pairs.size() - 1);
}
// ==================== Delete
@ -218,7 +218,7 @@ public:
private:
map<CString, int64_t, SortDummy> value_pos{};
vector<std::pair<CString, CString>> value_pairs{};// sequenced
mutable bool isRegistry{false};
mutable bool isRegistry{ false };
};
class CIniFile
@ -310,7 +310,7 @@ public:
// ============== Writer and Helper converter ============================
CIniFileSection& AddSection(CString&& sectionName) {
auto const ret = this->sections.insert({ std::move(sectionName), {}});
auto const ret = this->sections.insert({ std::move(sectionName), {} });
return ret.first->second;
}
CIniFileSection& AddSection(const CString& sectionName) {
@ -337,7 +337,7 @@ public:
}
void SetBool(const CString& section, const CString& key, const bool value) {
this->SetString(section, key, INIHelper::ToString(value));
this->SetString(section, key, INIHelper::ToString(value));
}
void SetInteger(const CString& section, const CString& key, const int value) {
this->SetString(section, key, INIHelper::ToString(value));