Fixed clang-tidy

This commit is contained in:
Maksim Kita 2021-01-28 20:10:27 +03:00
parent d194294d0b
commit a9ecb6bf78
2 changed files with 3 additions and 3 deletions

View File

@ -413,8 +413,8 @@ Block Block::cloneWithCutColumns(size_t start, size_t length) const
{
Block copy = *this;
for (size_t i = 0; i < copy.data.size(); ++i)
copy.data[i].column = copy.data[i].column->cut(start, length);
for (auto & column_to_cut : copy.data)
column_to_cut.column = column_to_cut.column->cut(start, length);
return copy;
}

View File

@ -286,7 +286,7 @@ Strings DictionaryStructure::getKeysNames() const
if (id)
return { id->name };
auto & key_attributes = *key;
const auto & key_attributes = *key;
Strings keys_names;
keys_names.reserve(key_attributes.size());