summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-12-07 00:07:39 -0500
committerGitHub <noreply@github.com>2020-12-07 00:07:39 -0500
commit43f0b42088a29c952d366da3ad2408eb1bc79906 (patch)
tree3f7fe444f37df73e0aef960ab05fa805e6697f86 /src
parent23aabe85e6a29ea0554527ed9470e2351203e282 (diff)
parent5cb1a343d19dc4f1aacfc5075815056c2f09ae8c (diff)
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,
global = json["global"].get<std::string>();
if (json["games"].is_array()) {
- for (const auto object : json["games"]) {
+ for (const auto& object : json["games"]) {
if (object.is_object() && object.find("name") != object.end()) {
EventStatus detail{};
if (object["header"].is_string()) {