1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 09:15:38 +00:00

Clarified the lambda expressions

This commit is contained in:
smilczek 2023-05-14 22:42:13 +02:00
parent 42cab989b1
commit 2910e35bc2
2 changed files with 3 additions and 3 deletions

View file

@ -327,7 +327,7 @@ namespace MWGui
mHistory->eventMouseWheel += MyGUI::newDelegate(this, &DialogueWindow::onMouseWheel);
BookPage::ClickCallback callback =
[&](TypesetBook::InteractiveId link) { DialogueWindow::notifyLinkClicked(link); };
[this](TypesetBook::InteractiveId link) { notifyLinkClicked(link); };
mHistory->adviseLinkClicked(callback);
mMainWidget->castType<MyGUI::Window>()->eventWindowChangeCoord

View file

@ -124,7 +124,7 @@ namespace
{
MWGui::BookPage::ClickCallback callback =
[&](intptr_t linkId) { JournalWindowImpl::notifyTopicClicked(linkId); };
[this](intptr_t linkId) { notifyTopicClicked(linkId); };
getPage(LeftBookPage)->adviseLinkClicked(callback);
getPage(RightBookPage)->adviseLinkClicked(callback);
@ -137,7 +137,7 @@ namespace
{
MWGui::BookPage::ClickCallback callback =
[&](MWGui::TypesetBook::InteractiveId index) { JournalWindowImpl::notifyIndexLinkClicked(index); };
[this](MWGui::TypesetBook::InteractiveId index) { notifyTopicClicked(index); };
getPage(LeftTopicIndex)->adviseLinkClicked(callback);
getPage(CenterTopicIndex)->adviseLinkClicked(callback);