diff options
author | Brotcrunsher <Brotcrunsher@hotmail.de> | 2023-06-04 18:34:48 +0200 |
---|---|---|
committer | Brotcrunsher <Brotcrunsher@hotmail.de> | 2023-06-20 10:23:08 +0200 |
commit | bdea2bb1147bbd22f8b4fa406262470f9d084215 (patch) | |
tree | 67b9656e7055dd9c0cc0954d53a2af5174c891b5 /src/common | |
parent | 8f402710371a40c5777dc3f9c4ba6ca8505a2f90 (diff) |
scripted-diff: Following the C++ Standard rules for identifiers with _.
Any identifier starting with two _, or one _ followed by a capital letter is reserved for the compiler and thus must not be used. See: https://stackoverflow.com/a/228797/7130273
-BEGIN VERIFY SCRIPT-
s() { git grep -l "$1" src | xargs sed -i "s/$1/$2/g"; }
s '__pushKV' 'pushKVEnd'
s '_EraseTx' 'EraseTxNoLock'
s '_Other' 'Other'
-END VERIFY SCRIPT-
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 9187f242eb..5761e8b321 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -115,7 +115,7 @@ bool WriteSettings(const fs::path& path, { SettingsValue out(SettingsValue::VOBJ); for (const auto& value : values) { - out.__pushKV(value.first, value.second); + out.pushKVEnd(value.first, value.second); } std::ofstream file; file.open(path); |