mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-26 02:40:43 -06:00
Fix unnecessary copy in range-for loop
Flagged by new clang Apple version 12.
This commit is contained in:
parent
1c5561714d
commit
44fc52f5c6
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user