提交 38e9e837 编写于 作者: N Nikolai Kochetov

style fixes

上级 7c736b12
......@@ -976,7 +976,7 @@ PaddedPODArray<CacheDictionary::Key> CacheDictionary::getCachedIds() const
PaddedPODArray<Key> array;
for (size_t idx = 0; idx < cells.size(); ++idx)
{
auto& cell = cells[idx];
auto & cell = cells[idx];
if (!isEmptyCell(idx))
{
array.push_back(cell.id);
......
......@@ -16,7 +16,6 @@
#include <tuple>
#include <random>
class A;
namespace DB
{
......
......@@ -505,7 +505,7 @@ void ComplexKeyHashedDictionary::has(const Attribute & attribute, const Columns
std::vector<StringRef> ComplexKeyHashedDictionary::getKeys() const
{
const Attribute& attribute = attributes.front();
const Attribute & attribute = attributes.front();
switch (attribute.type)
{
......@@ -525,7 +525,7 @@ std::vector<StringRef> ComplexKeyHashedDictionary::getKeys() const
}
template <typename T>
std::vector<StringRef> ComplexKeyHashedDictionary::getKeys(const Attribute& attribute) const
std::vector<StringRef> ComplexKeyHashedDictionary::getKeys(const Attribute & attribute) const
{
const ContainerType<T> & attr = *std::get<ContainerPtrType<T>>(attribute.maps);
std::vector<StringRef> keys;
......
......@@ -194,7 +194,7 @@ private:
std::vector<StringRef> getKeys() const;
template <typename T>
std::vector<StringRef> getKeys(const Attribute& attribute) const;
std::vector<StringRef> getKeys(const Attribute & attribute) const;
const std::string name;
const DictionaryStructure dict_struct;
......
......@@ -11,7 +11,7 @@ DictionaryBlockInputStreamBase::DictionaryBlockInputStreamBase(size_t rows_count
String DictionaryBlockInputStreamBase::getID() const
{
std::stringstream ss;
ss << static_cast<const void*> (this);
ss << static_cast<const void*>(this);
return ss.str();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册