Skip to content

Commit b921fef

Browse files
lyrics: Fix deprecation warning when using C++20 standard
See also: https://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0806r2.html
1 parent db73e01 commit b921fef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lyrics-common/chart_lyrics_provider.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ bool ChartLyricsProvider::match (LyricsState state)
8787
{
8888
reset_lyric_metadata ();
8989

90-
auto handle_result_cb = [=] (const char * uri, const Index<char> & buf) {
90+
auto handle_result_cb = [this, state] (const char * uri, const Index<char> & buf) {
9191
if (! buf.len ())
9292
{
9393
update_lyrics_window_error (str_printf (_("Unable to fetch %s"), uri));
@@ -144,7 +144,7 @@ void ChartLyricsProvider::fetch (LyricsState state)
144144
return;
145145
}
146146

147-
auto handle_result_cb = [=] (const char * uri, const Index<char> & buf) {
147+
auto handle_result_cb = [this] (const char * uri, const Index<char> & buf) {
148148
if (! buf.len ())
149149
{
150150
update_lyrics_window_error (str_printf (_("Unable to fetch %s"), uri));

0 commit comments

Comments
 (0)