]> git.sesse.net Git - nageru/commitdiff
Fix a Clang warning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 16 Dec 2018 18:10:39 +0000 (19:10 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 16 Dec 2018 18:10:39 +0000 (19:10 +0100)
futatabi/mainwindow.cpp

index 23840ff8441a0d4dfcadcdd434e3c5a3bf2e617f..0c12b5c17637c6ce648b7a24841cd09f92e29f9a 100644 (file)
@@ -470,7 +470,7 @@ pair<Clip, size_t> MainWindow::live_player_get_next_clip()
        // for Player to shut down, we could have a deadlock here.
        promise<pair<Clip, size_t>> clip_promise;
        future<pair<Clip, size_t>> clip = clip_promise.get_future();
-       post_to_main_thread([this, &clip_promise] {
+       post_to_main_thread([&clip_promise] {
                int row = playlist_clips->get_currently_playing();
                if (row != -1 && row < int(playlist_clips->size()) - 1) {
                        clip_promise.set_value(make_pair(*playlist_clips->clip(row + 1), row + 1));