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

+2 -2
View File
@@ -194,7 +194,7 @@ void ImStructViewer::WatchForm::Clear() {
memset(name, 0, sizeof(name));
memset(expression, 0, sizeof(expression));
dynamic = false;
error = "";
error.clear();
typeFilter.Clear();
// Not clearing the actual selected type on purpose here, user will have to reselect one anyway and
// maybe there is a chance they will reuse the current one
@@ -213,7 +213,7 @@ void ImStructViewer::WatchForm::SetFrom(const std::unordered_map<std::string, Gh
snprintf(expression, sizeof(expression), "%s", watch.expression.c_str());
}
dynamic = !watch.expression.empty();
error = "";
error.clear();
}
static constexpr int COLUMN_NAME = 0;