mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-18 04:06:42 -04:00
CIni::InsertOrAssign const reference version implemented, fixed assinging issue .
This commit is contained in:
parent
28bfce25c9
commit
34a09e9aca
1 changed files with 4 additions and 0 deletions
|
@ -193,10 +193,14 @@ public:
|
|||
auto const [pos, found] = LowerBound(key);
|
||||
if (!found) {
|
||||
InsertAt(pos, std::move(key), std::move(value));
|
||||
return;
|
||||
}
|
||||
// existed, assign
|
||||
value_pairs[pos].second = std::move(value);
|
||||
}
|
||||
void InsertOrAssign(const CString& key, const CString& value) {
|
||||
this->InsertOrAssign(CString(key), CString(value));
|
||||
}
|
||||
|
||||
// ==================== Delete
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue