mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fixed clang-tidy
This commit is contained in:
parent
d194294d0b
commit
a9ecb6bf78
@ -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;
|
||||
}
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user