From 9749e49cfcbed1e2525bfb72bc6e44e90db72034 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 13 Dec 2020 15:55:45 +0100 Subject: Squash a few more warnings --- src/screens/sort_playlist.cpp | 2 +- src/screens/tiny_tag_editor.cpp | 2 +- src/settings.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens/sort_playlist.cpp b/src/screens/sort_playlist.cpp index f3811c08..c58d7f8f 100644 --- a/src/screens/sort_playlist.cpp +++ b/src/screens/sort_playlist.cpp @@ -194,7 +194,7 @@ void SortPlaylistDialog::sort() const std::iter_swap(a, b); Mpd.Swap(start_pos+a-playlist.begin(), start_pos+b-playlist.begin()); }; - quick_sort = [this, &song_cmp, &quick_sort, &iter_swap](Iterator first, Iterator last) { + quick_sort = [&song_cmp, &quick_sort, &iter_swap](Iterator first, Iterator last) { if (last-first > 1) { Iterator pivot = first+Global::RNG()%(last-first); diff --git a/src/screens/tiny_tag_editor.cpp b/src/screens/tiny_tag_editor.cpp index 3b2a034c..c0e7a651 100644 --- a/src/screens/tiny_tag_editor.cpp +++ b/src/screens/tiny_tag_editor.cpp @@ -224,7 +224,7 @@ bool TinyTagEditor::getTags() w.highlight(8); - auto print_key_value = [this](NC::Buffer &buf, const char *key, const auto &value) { + auto print_key_value = [](NC::Buffer &buf, const char *key, const auto &value) { buf << NC::Format::Bold << Config.color1 << key diff --git a/src/settings.cpp b/src/settings.cpp index fe79baca..b3e582ba 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -251,7 +251,7 @@ bool Configuration::read(const std::vector &config_paths, bool igno + "\" to preserve current behavior"); }; }); - p.add("active_column_color", nullptr, "", [this](std::string v) { + p.add("active_column_color", nullptr, "", [](std::string v) { if (!v.empty()) { deprecated( -- cgit v1.2.3