From 603d6eabd13b033d3a0ed6b0745b5c6d942086fd Mon Sep 17 00:00:00 2001 From: David Hampton Date: Wed, 2 Sep 2020 00:12:17 -0400 Subject: [PATCH] clazy: Add const qualification to range-for loop of std::array. --- mythtv/programs/mythbackend/backendhousekeeper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/programs/mythbackend/backendhousekeeper.cpp b/mythtv/programs/mythbackend/backendhousekeeper.cpp index 945ea2e72dc..eb95767fda2 100644 --- a/mythtv/programs/mythbackend/backendhousekeeper.cpp +++ b/mythtv/programs/mythbackend/backendhousekeeper.cpp @@ -216,7 +216,7 @@ void CleanupTask::CleanupRecordedTables(void) return; } - for (auto [table,column] : tables) + for (const auto & [table,column] : tables) { query.prepare(QString("TRUNCATE TABLE temprecordedcleanup;")); if (!query.exec() || !query.isActive())