From c652a07c0549529560247db581b35843b7b6008c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 02:35:15 +0000 Subject: [PATCH 2/2] Fix non-const lvalue reference binding in inventory_snapshots_repository.h Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- common/repositories/inventory_snapshots_repository.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/repositories/inventory_snapshots_repository.h b/common/repositories/inventory_snapshots_repository.h index 88671cdd7..674e8bb1b 100644 --- a/common/repositories/inventory_snapshots_repository.h +++ b/common/repositories/inventory_snapshots_repository.h @@ -81,7 +81,7 @@ public: return -1; } - auto &row = results.begin(); + auto row = results.begin(); const int64 count = Strings::ToBigInt(row[0]); if (count > std::numeric_limits::max()) {