summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2020-08-31 11:00:39 -0400
committercomex <comexk@gmail.com>2020-12-06 18:31:13 -0500
commit5cb1a343d19dc4f1aacfc5075815056c2f09ae8c (patch)
tree3bdf6d3eec70ebb0818ec05c41c287c7c305c570 /src
parent7e5f595b31771384be0be7f403160340312886bb (diff)
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()) {