summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar comex2020-08-31 11:00:39 -0400
committerGravatar comex2020-12-06 18:31:13 -0500
commit5cb1a343d19dc4f1aacfc5075815056c2f09ae8c (patch)
tree3bdf6d3eec70ebb0818ec05c41c287c7c305c570 /src
parentMerge pull request #5143 from comex/xx-users-size (diff)
downloadyuzu-5cb1a343d19dc4f1aacfc5075815056c2f09ae8c.tar.gz
yuzu-5cb1a343d19dc4f1aacfc5075815056c2f09ae8c.tar.xz
yuzu-5cb1a343d19dc4f1aacfc5075815056c2f09ae8c.zip
boxcat: Avoid unnecessary object copy
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/bcat/backend/boxcat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/bcat/backend/boxcat.cpp b/src/core/hle/service/bcat/backend/boxcat.cpp
index 3b6f7498e..e43f3f47f 100644
--- a/src/core/hle/service/bcat/backend/boxcat.cpp
+++ b/src/core/hle/service/bcat/backend/boxcat.cpp
@@ -483,7 +483,7 @@ Boxcat::StatusResult Boxcat::GetStatus(std::optional<std::string>& global,
483 global = json["global"].get<std::string>(); 483 global = json["global"].get<std::string>();
484 484
485 if (json["games"].is_array()) { 485 if (json["games"].is_array()) {
486 for (const auto object : json["games"]) { 486 for (const auto& object : json["games"]) {
487 if (object.is_object() && object.find("name") != object.end()) { 487 if (object.is_object() && object.find("name") != object.end()) {
488 EventStatus detail{}; 488 EventStatus detail{};
489 if (object["header"].is_string()) { 489 if (object["header"].is_string()) {