fix clang-tidy

This commit is contained in:
Anton Popov 2021-10-02 22:35:50 +03:00
parent 1f10246a10
commit 857b8f0b1d
2 changed files with 3 additions and 3 deletions

View File

@ -156,14 +156,14 @@ struct ColumnFixedString::less
{
Cmp<true> cmp;
explicit less(const ColumnFixedString & parent_) : cmp(parent_) {}
int operator()(size_t lhs, size_t rhs) { return cmp(lhs, rhs) < 0; }
int operator()(size_t lhs, size_t rhs) const { return cmp(lhs, rhs) < 0; }
};
struct ColumnFixedString::greater
{
Cmp<true> cmp;
explicit greater(const ColumnFixedString & parent_) : cmp(parent_) {}
int operator()(size_t lhs, size_t rhs) { return cmp(lhs, rhs) > 0; }
int operator()(size_t lhs, size_t rhs) const { return cmp(lhs, rhs) > 0; }
};
void ColumnFixedString::getPermutation(bool reverse, size_t limit, int /*nan_direction_hint*/, Permutation & res) const

View File

@ -8,7 +8,7 @@
#include <Columns/IColumn.h>
#include <Common/PODArray.h>
#include <common/sort.h>
#include <base/sort.h>
#include <algorithm>
namespace DB