From 43341b7aa9c883066c6d31da929cc30732da66f9 Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Fri, 12 Dec 2025 11:09:51 -0800 Subject: remove boost::lambda in favor of C++ --- indra/newview/llviewerwindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'indra/newview/llviewerwindow.cpp') diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 692e192edb..209abe5dea 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -34,7 +34,6 @@ #include #include #include -#include #include #include "llagent.h" @@ -1883,9 +1882,8 @@ LLViewerWindow::LLViewerWindow(const Params& p) // gKeyboard is still NULL, so it doesn't do LLWindowListener any good to // pass its value right now. Instead, pass it a nullary function that // will, when we later need it, return the value of gKeyboard. - // boost::lambda::var() constructs such a functor on the fly. - mWindowListener = std::make_unique(this, boost::lambda::var(gKeyboard)); - mViewerWindowListener = std::make_unique(this); + LLWindowListener::KeyboardGetter getter = []() { return gKeyboard; }; + mWindowListener = std::make_unique(this, getter); mSystemChannel.reset(new LLNotificationChannel("System", "Visible", LLNotificationFilters::includeEverything)); mCommunicationChannel.reset(new LLCommunicationChannel("Communication", "Visible")); -- cgit v1.3