diff --git a/ydb/library/yql/minikql/mkql_alloc.h b/ydb/library/yql/minikql/mkql_alloc.h index df20d48d093c..adbe9551228b 100644 --- a/ydb/library/yql/minikql/mkql_alloc.h +++ b/ydb/library/yql/minikql/mkql_alloc.h @@ -378,15 +378,15 @@ inline void* MKQLAllocWithSize(size_t sz, const EMemorySubPool mPool) { } inline void MKQLFreeWithSize(const void* mem, size_t sz, const EMemorySubPool mPool) noexcept { - return MKQLFreeFastWithSize(mem, sz, TlsAllocState, mPool); + MKQLFreeFastWithSize(mem, sz, TlsAllocState, mPool); } inline void MKQLRegisterObject(NUdf::TBoxedValue* value) noexcept { - return value->Link(TlsAllocState->GetRoot()); + value->Link(TlsAllocState->GetRoot()); } inline void MKQLUnregisterObject(NUdf::TBoxedValue* value) noexcept { - return value->Unlink(); + value->Unlink(); } template @@ -426,7 +426,7 @@ T* AllocateOn(TAllocState* state, Args&&... args) static_assert(std::is_base_of, T>::value, "Class must inherit TWithMiniKQLAlloc."); } -template +template struct TMKQLAllocator { typedef Type value_type; @@ -440,10 +440,10 @@ struct TMKQLAllocator TMKQLAllocator() noexcept = default; ~TMKQLAllocator() noexcept = default; - template TMKQLAllocator(const TMKQLAllocator&) noexcept {} - template struct rebind { typedef TMKQLAllocator other; }; - template bool operator==(const TMKQLAllocator&) const { return true; } - template bool operator!=(const TMKQLAllocator&) const { return false; } + template TMKQLAllocator(const TMKQLAllocator&) noexcept {} + template struct rebind { typedef TMKQLAllocator other; }; + template bool operator==(const TMKQLAllocator&) const { return true; } + template bool operator!=(const TMKQLAllocator&) const { return false; } static pointer allocate(size_type n, const void* = nullptr) { @@ -452,7 +452,7 @@ struct TMKQLAllocator static void deallocate(const_pointer p, size_type n) noexcept { - return MKQLFreeWithSize(p, n * sizeof(value_type), MemoryPool); + MKQLFreeWithSize(p, n * sizeof(value_type), MemoryPool); } }; @@ -683,7 +683,7 @@ class TPagedList inline void TBoxedValueWithFree::operator delete(void *mem) noexcept { auto size = ((TMkqlPAllocHeader*)mem)->Size + sizeof(TMkqlPAllocHeader); - return MKQLFreeWithSize(mem, size, EMemorySubPool::Default); + MKQLFreeWithSize(mem, size, EMemorySubPool::Default); } } // NMiniKQL