Fix unnecessary copy in range-for loop

Flagged by new clang Apple version 12.
This commit is contained in:
John Ralls 2020-09-25 12:31:13 -07:00
parent 1c5561714d
commit 44fc52f5c6

View File

@ -485,7 +485,7 @@ create_index_ddl (const GncSqlConnection* conn, const std::string& index_name,
{
std::string ddl;
ddl += "CREATE INDEX " + index_name + " ON " + table_name + "(";
for (auto const table_row : col_table)
for (const auto& table_row : col_table)
{
if (table_row != *col_table.begin())
{