From 790cb730d657714f6bb4e43bd0fe001c70e15733 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 19 Sep 2022 00:23:46 +0200 Subject: [PATCH] Fix clang-tidy --- .../AggregateFunctionCategoricalInformationValue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp b/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp index 99ffc87e076..89ffdfa6109 100644 --- a/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp +++ b/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp @@ -35,12 +35,12 @@ private: using Counter = UInt64; size_t category_count; - Counter & counter(AggregateDataPtr __restrict place, size_t i, bool what) const + static Counter & counter(AggregateDataPtr __restrict place, size_t i, bool what) { return reinterpret_cast(place)[i * 2 + (what ? 1 : 0)]; } - const Counter & counter(ConstAggregateDataPtr __restrict place, size_t i, bool what) const + static const Counter & counter(ConstAggregateDataPtr __restrict place, size_t i, bool what) { return reinterpret_cast(place)[i * 2 + (what ? 1 : 0)]; }