Core/UI: use clear() and empty() for std containers

This commit is contained in:
Herman Semenoff committed 2026-05-17 21:28:31 +03:00
1 parent dbb34075bc
commit d406f63102
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -322,7 +322,7 @@ bool ConfigSetting::RestoreToDefault(ConfigBlock *configBlock, bool log) const {
} else if (default_.s != nullptr) {
*ptr_s = default_.s;
} else {
*ptr_s = "";
ptr_s->clear();
}
if (*ptr_s != origValue) {
if (log) {