From 5cb1a343d19dc4f1aacfc5075815056c2f09ae8c Mon Sep 17 00:00:00 2001 From: comex Date: Mon, 31 Aug 2020 11:00:39 -0400 Subject: boxcat: Avoid unnecessary object copy --- src/core/hle/service/bcat/backend/boxcat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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& global, global = json["global"].get(); 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()) { -- cgit v1.2.3