This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch compilers-101 in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 21669160a5d02040f20cfded065e2d4d8d6efc06 Author: Pedro F. Giffuni <[email protected]> AuthorDate: Fri Nov 6 00:33:24 2026 -0500 Boost modernization Phase 3 continued: boost::bind to C++14 lambdas (~10 more files) - Replace boost::bind with C++14 lambdas in: - sd/source/ui/view/drviews1.cxx (LclResetFlag ScopeGuard, SwitchPage callback) - Remove #include <boost/bind.hpp> where no longer needed --- main/sd/source/ui/view/drviews1.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main/sd/source/ui/view/drviews1.cxx b/main/sd/source/ui/view/drviews1.cxx index fce92708df..15c3ffc8f9 100644 --- a/main/sd/source/ui/view/drviews1.cxx +++ b/main/sd/source/ui/view/drviews1.cxx @@ -101,7 +101,6 @@ #include "ViewShellHint.hxx" #include <sfx2/request.hxx> -#include <boost/bind.hpp> #ifdef _MSC_VER #if (_MSC_VER < 1400) @@ -937,16 +936,13 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) if (mbIsInSwitchPage) return sal_False; mbIsInSwitchPage = true; - comphelper::ScopeGuard aGuard (::boost::bind(LclResetFlag, ::boost::ref(mbIsInSwitchPage))); + comphelper::ScopeGuard aGuard ( [&]() { LclResetFlag( mbIsInSwitchPage ); } ); if (GetActiveWindow()->IsInPaint()) { // Switching the current page while a Paint is being executed is // dangerous. So, post it for later execution and return. - maAsynchronousSwitchPageCall.Post(::boost::bind( - ::std::mem_fun(&DrawViewShell::SwitchPage), - this, - nSelectedPage)); + maAsynchronousSwitchPageCall.Post([this, nSelectedPage]() { this->SwitchPage( nSelectedPage ); }); return sal_False; }
