include/oox/helper/refmap.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit c948df0ca4b48272aaaa710f17202ccd6ac161ab Author: Ion Rusnac <[email protected]> AuthorDate: Thu Dec 18 19:34:31 2025 +0200 Commit: Mike Kaganski <[email protected]> CommitDate: Fri Dec 19 16:11:03 2025 +0100 tdf#165233 Replaced lambda explicit capture with capture-default Signed-off-by: Ion Rusnac <[email protected]> Change-Id: Ia847feebe9e1a4a3db9da2b1acdf41b1b2123186 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195869 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/include/oox/helper/refmap.hxx b/include/oox/helper/refmap.hxx index 6fc7c747a2df..0c0ed92489c3 100644 --- a/include/oox/helper/refmap.hxx +++ b/include/oox/helper/refmap.hxx @@ -75,7 +75,7 @@ public: template< typename FuncType > void forEachMem( FuncType pFunc ) const { - forEach( [pFunc] ( auto& rObj ) { + forEach( [&] (auto& rObj) { (rObj.*pFunc)(); } ); } @@ -85,7 +85,7 @@ public: template< typename FuncType, typename ParamType1, typename ParamType2 > void forEachMem( FuncType pFunc, ParamType1 aParam1, ParamType2 aParam2 ) const { - forEach( [pFunc, aParam1, aParam2] (auto& rObj) { + forEach( [&] (auto& rObj) { (rObj.*pFunc)(aParam1, aParam2); } ); } @@ -95,7 +95,7 @@ public: template< typename FuncType, typename ParamType1, typename ParamType2, typename ParamType3 > void forEachMem( FuncType pFunc, ParamType1 aParam1, ParamType2 aParam2, ParamType3 aParam3 ) const { - forEach( [pFunc, aParam1, aParam2, aParam3] (auto& rObj) { + forEach( [&] (auto& rObj) { (rObj.*pFunc)(aParam1, aParam2, aParam3); } ); } @@ -114,7 +114,7 @@ public: template< typename FuncType > void forEachMemWithKey( FuncType pFunc ) const { - forEachWithKey( [pFunc] ( const auto& rKey, auto& rObj ) { + forEachWithKey( [&] ( const auto& rKey, auto& rObj ) { (rObj.*pFunc)(rKey); } ); }
