From 621134ffcb9180f900ac2b93f85fd0b21a447d78 Mon Sep 17 00:00:00 2001 From: pajlada Date: Sat, 24 Dec 2022 15:23:07 +0100 Subject: [PATCH] Remove another implicit this-capture for C++20 migration (#4257) * Fix another usage of an implicit this capture * Add changelog entry --- CHANGELOG.md | 2 +- src/providers/emoji/Emojis.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b9c65bed..2590791c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ - Bugfix: Fixed crash that could occur when changing Tab layout and utilizing multiple windows. (#4248) - Dev: Remove protocol from QApplication's Organization Domain (so changed from `https://www.chatterino.com` to `chatterino.com`). (#4256) - Dev: Ignore `WM_SHOWWINDOW` hide events, causing fewer attempted rescales. (#4198) -- Dev: Migrated to C++ 20 (#4252) +- Dev: Migrated to C++ 20 (#4252, #4257) ## 2.4.0 diff --git a/src/providers/emoji/Emojis.cpp b/src/providers/emoji/Emojis.cpp index f08bab528..3833930ce 100644 --- a/src/providers/emoji/Emojis.cpp +++ b/src/providers/emoji/Emojis.cpp @@ -215,7 +215,7 @@ void Emojis::sortEmojis() void Emojis::loadEmojiSet() { #ifndef CHATTERINO_TEST - getSettings()->emojiSet.connect([=](const auto &emojiSet) { + getSettings()->emojiSet.connect([this](const auto &emojiSet) { #else const QString emojiSet = "twitter"; #endif