mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Core/UI: use clear() and empty() for std containers
This commit is contained in:
1 parent
dbb34075bc
commit
d406f63102
5 files changed
+6
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user