From fd286d4a7163cf2a54fb4e1f31cb6ee8c551c876 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 1 May 2023 13:44:00 +0200 Subject: [PATCH] Fix a newer Clang warning. --- stats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats.cpp b/stats.cpp index 63676cb..653c16b 100644 --- a/stats.cpp +++ b/stats.cpp @@ -131,7 +131,7 @@ void EventsModel::refresh_if_needed() const p.player_id = sqlite3_column_int(stmt, 0); p.number = (const char *)sqlite3_column_text(stmt, 1); p.name = (const char *) sqlite3_column_text(stmt, 2); - players[p.player_id] = move(p); + players[p.player_id] = std::move(p); } else if (ret == SQLITE_DONE) { break; } else { @@ -158,7 +158,7 @@ void EventsModel::refresh_if_needed() const e.t = sqlite3_column_int(stmt, 0); e.player_id = sqlite3_column_int(stmt, 1); e.type = (const char *)sqlite3_column_text(stmt, 2); - events.push_back(move(e)); + events.push_back(std::move(e)); } else if (ret == SQLITE_DONE) { break; } else { -- 2.39.5