summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar LC2020-12-07 00:07:39 -0500
committerGravatar GitHub2020-12-07 00:07:39 -0500
commit43f0b42088a29c952d366da3ad2408eb1bc79906 (patch)
tree3f7fe444f37df73e0aef960ab05fa805e6697f86 /src
parentMerge pull request #5152 from comex/xx-override (diff)
parentboxcat: Avoid unnecessary object copy (diff)
downloadyuzu-43f0b42088a29c952d366da3ad2408eb1bc79906.tar.gz
yuzu-43f0b42088a29c952d366da3ad2408eb1bc79906.tar.xz
yuzu-43f0b42088a29c952d366da3ad2408eb1bc79906.zip
Merge pull request #5150 from comex/xx-boxcat
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()) {