Skip to content

Commit 153f699

Browse files
committed
minor refactor.
1 parent 7bc73ef commit 153f699

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ReflectionTemplateLib/detail/inc/SetupFunction.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace rtl
2323
inline SetupFunction<_derivedType>::FunctionLambda<_signature...>
2424
SetupFunction<_derivedType>::getCaller(void(*pFunctor)(_signature...))
2525
{
26-
return [=](_signature&&... params) -> Return
26+
return [pFunctor](_signature&&... params) -> Return
2727
{
2828
pFunctor(std::forward<_signature>(params)...);
2929
return { error::None, RObject{} };
@@ -38,7 +38,7 @@ namespace rtl
3838
{
3939
/* a variable arguments lambda, which finally calls the 'pFunctor' with 'params...'.
4040
this is stored in _derivedType's (FunctorContainer) vector holding lambda's.
41-
*/ return [=](_signature&&...params)-> Return
41+
*/ return [pFunctor](_signature&&...params)-> Return
4242
{
4343
constexpr bool isConstCastSafe = (!traits::is_const_v<_returnType>);
4444

ReflectionTemplateLib/detail/inc/SetupMethod.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace rtl
2828
{
2929
/* a variable arguments lambda, which finally calls the 'pFunctor' with 'params...'.
3030
this is stored in _derivedType's (MethodContainer<detail::methodQ::NonConst, _signature...>) vector holding lambda's.
31-
*/ return [=](const RObject& pTargetObj, _signature&&...params)-> Return
31+
*/ return [pFunctor](const RObject& pTargetObj, _signature&&...params)-> Return
3232
{
3333
if (!pTargetObj.isConstCastSafe()) [[unlikely]] {
3434
return { error::IllegalConstCast, RObject{} };
@@ -48,7 +48,7 @@ namespace rtl
4848
{
4949
/* a variable arguments lambda, which finally calls the 'pFunctor' with 'params...'.
5050
this is stored in _derivedType's (MethodContainer<detail::methodQ::NonConst, _signature...>) vector holding lambda's.
51-
*/ return [=](const RObject& pTargetObj, _signature&&...params)-> Return
51+
*/ return [pFunctor](const RObject& pTargetObj, _signature&&...params)-> Return
5252
{
5353
if (!pTargetObj.isConstCastSafe()) [[unlikely]] {
5454
return { error::IllegalConstCast, RObject{} };
@@ -90,7 +90,7 @@ namespace rtl
9090
{
9191
/* a variable arguments lambda, which finally calls the 'pFunctor' with 'params...'.
9292
this is stored in _derivedType's (MethodContainer<detail::methodQ::Const, _signature...>) vector holding lambda's.
93-
*/ return [=](const RObject& pTargetObj, _signature&&...params)-> Return
93+
*/ return [pFunctor](const RObject& pTargetObj, _signature&&...params)-> Return
9494
{
9595
const _recordType& target = pTargetObj.view<_recordType>()->get();
9696
(target.*pFunctor)(std::forward<_signature>(params)...);
@@ -106,7 +106,7 @@ namespace rtl
106106
{
107107
/* a variable arguments lambda, which finally calls the 'pFunctor' with 'params...'.
108108
this is stored in _derivedType's (MethodContainer<detail::methodQ::Const, _signature...>) vector holding lambda's.
109-
*/ return [=](const RObject& pTargetObj, _signature&&...params)-> Return
109+
*/ return [pFunctor](const RObject& pTargetObj, _signature&&...params)-> Return
110110
{
111111
constexpr bool isConstCastSafe = (!traits::is_const_v<_returnType>);
112112
//'target' is const and 'pFunctor' is const-member-function.

0 commit comments

Comments
 (0)