Skip to content

Commit

Permalink
Fix unnecessary copy in range-for loop
Browse files Browse the repository at this point in the history
Flagged by new clang Apple version 12.
  • Loading branch information
jralls committed Sep 25, 2020
1 parent 1c55617 commit 44fc52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgnucash/backend/dbi/gnc-dbisqlconnection.cpp
Expand Up @@ -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())
{
Expand Down

0 comments on commit 44fc52f

Please sign in to comment.