diff options
| author | 2020-08-31 11:00:39 -0400 | |
|---|---|---|
| committer | 2020-12-06 18:31:13 -0500 | |
| commit | 5cb1a343d19dc4f1aacfc5075815056c2f09ae8c (patch) | |
| tree | 3bdf6d3eec70ebb0818ec05c41c287c7c305c570 /src | |
| parent | Merge pull request #5143 from comex/xx-users-size (diff) | |
| download | yuzu-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.cpp | 2 |
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()) { |