Fix readability issues

This commit is contained in:
Raúl Marín 2022-01-24 20:21:42 +01:00
parent 78d2caee7e
commit 045c92e2b9
2 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ InterpreterSelectQuery::InterpreterSelectQuery(
{
const auto & storage_values = static_cast<const StorageValues &>(*view_source);
auto tmp_table_id = storage_values.getStorageID();
for (auto & t : joined_tables.tablesWithColumns())
for (const auto & t : joined_tables.tablesWithColumns())
uses_view_source |= (t.table.database == tmp_table_id.database_name && t.table.table == tmp_table_id.table_name);
}

View File

@ -34,7 +34,7 @@ ASTPtr ASTSelectQuery::clone() const
* Since the positions map uses <key, position> we can copy it as is and ensure the new children array is created / pushed
* in the same order as the existing one */
res->children.clear();
for (auto & child : children)
for (const auto & child : children)
res->children.push_back(child->clone());
return res;