From a16f22f1012de55816856b7072966e7dae55f6e4 Mon Sep 17 00:00:00 2001 From: Andrei Litvin <andy314@gmail.com> Date: Wed, 16 Mar 2022 13:58:22 -0400 Subject: [PATCH] Restyle --- src/inet/InetLayer.h | 2 +- src/lib/support/PoolWrapper.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/inet/InetLayer.h b/src/inet/InetLayer.h index a188dc86d41904..8a075e3bcbd3dd 100644 --- a/src/inet/InetLayer.h +++ b/src/inet/InetLayer.h @@ -117,7 +117,7 @@ class EndPointManagerImplPool : public EndPointManager<typename EndPointImpl::En using Manager = EndPointManager<typename EndPointImpl::EndPoint>; using EndPoint = typename EndPointImpl::EndPoint; - EndPointManagerImplPool() = default; + EndPointManagerImplPool() = default; ~EndPointManagerImplPool() override = default; EndPoint * CreateEndPoint() override { return sEndPointPool.CreateObject(*this); } diff --git a/src/lib/support/PoolWrapper.h b/src/lib/support/PoolWrapper.h index 93003e298f98a8..78b6d838245633 100644 --- a/src/lib/support/PoolWrapper.h +++ b/src/lib/support/PoolWrapper.h @@ -88,13 +88,12 @@ class PoolProxy<T, N, M, std::tuple<U, ConstructorArguments...>> : public PoolIn } protected: - Loop ForEachActiveObjectInner(void * context, - typename PoolInterface<U, ConstructorArguments...>::Lambda lambda) override + Loop ForEachActiveObjectInner(void * context, typename PoolInterface<U, ConstructorArguments...>::Lambda lambda) override { return Impl().ForEachActiveObject([&](T * target) { return lambda(context, static_cast<U *>(target)); }); } Loop ForEachActiveObjectInner(void * context, - typename PoolInterface<U, ConstructorArguments...>::LambdaConst lambda) const override + typename PoolInterface<U, ConstructorArguments...>::LambdaConst lambda) const override { return Impl().ForEachActiveObject([&](const T * target) { return lambda(context, static_cast<const U *>(target)); }); }