mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-27 03:04:16 +01:00
Merge pull request #5150 from comex/xx-boxcat
boxcat: Avoid unnecessary object copy
This commit is contained in:
commit
43f0b42088
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user