[vlc-commits] [Git][videolan/vlc][master] qt: mlfolderseditor: fix capture-by-copy parameters
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Aug 5 16:20:47 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
44e5db91 by Alexandre Janniaux at 2024-08-05T15:42:49+00:00
qt: mlfolderseditor: fix capture-by-copy parameters
Fixes the following warning:
../modules/gui/qt/widgets/native/mlfolderseditor.cpp:144:55: warning: explicit capture of 'this' with a capture default of '=' is a C++20 extension [-Wc++20-extensions]
144 | connect( pb, &QPushButton::clicked, this, [=, this]()
| ^
- - - - -
1 changed file:
- modules/gui/qt/widgets/native/mlfolderseditor.cpp
Changes:
=====================================
modules/gui/qt/widgets/native/mlfolderseditor.cpp
=====================================
@@ -141,7 +141,7 @@ void MLFoldersEditor::newRow(const QUrl &mrl)
layout->addWidget( pb , Qt::AlignCenter );
wid->setLayout( layout );
- connect( pb, &QPushButton::clicked, this, [=, this]()
+ connect( pb, &QPushButton::clicked, this, [this, col1, action]()
{
action(this, col1->row());
});
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/44e5db91b6f62909efd6397fb57f6f402f299868
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/44e5db91b6f62909efd6397fb57f6f402f299868
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list