diff options
| author | Rider Linden <rider@lindenlab.com> | 2025-12-12 11:09:51 -0800 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2025-12-12 11:09:51 -0800 |
| commit | 43341b7aa9c883066c6d31da929cc30732da66f9 (patch) | |
| tree | d296f077551fea4ea87c470ad118d9a009366a4b /indra/newview/llviewerwindow.cpp | |
| parent | 3ea11b45c16608c751710fdbaae9399208a11d54 (diff) | |
remove boost::lambda in favor of C++
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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 <fstream> #include <algorithm> #include <boost/filesystem.hpp> -#include <boost/lambda/core.hpp> #include <boost/regex.hpp> #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<LLWindowListener>(this, boost::lambda::var(gKeyboard)); - mViewerWindowListener = std::make_unique<LLViewerWindowListener>(this); + LLWindowListener::KeyboardGetter getter = []() { return gKeyboard; }; + mWindowListener = std::make_unique<LLWindowListener>(this, getter); mSystemChannel.reset(new LLNotificationChannel("System", "Visible", LLNotificationFilters::includeEverything)); mCommunicationChannel.reset(new LLCommunicationChannel("Communication", "Visible")); |
