diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-12-17 08:53:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-02 12:32:01 +0200 |
commit | 4def21a89a90c642a4bf516c171564b0b578734f (patch) | |
tree | 0ffa2cc835f8b0f3746a8650bddb6e1fd9a08d21 /vcl | |
parent | df02927207ad19532f5c1ac5a5cf745559e47c22 (diff) |
Resolve deprecated implicit capture of *this by reference in C++20
...as flagged with -Werror=deprecated by trunk GCC in -std=c++2a mode. But
C++17 forbids "this" in combination with a capture-default of "=", so in such
cases list any entities explicitly that shall be captured by value.
Change-Id: Ic228cd20682277a0f93e3e75798356d0fbbb80d4
Reviewed-on: https://gerrit.libreoffice.org/65241
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
(cherry picked from commit c56a8280bdd605f77f0075a7f2bfa474aa2a26e5)
Reviewed-on: https://gerrit.libreoffice.org/71661
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/dialog.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 168816392a30..9378f71cf0a5 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -1087,7 +1087,7 @@ void Dialog::RemoveFromDlgList() auto& rExecuteDialogs = pSVData->maWinData.mpExecuteDialogs; // remove dialog from the list of dialogs which are being executed - rExecuteDialogs.erase(std::remove_if(rExecuteDialogs.begin(), rExecuteDialogs.end(), [=](VclPtr<Dialog>& dialog){ return dialog.get() == this; }), rExecuteDialogs.end()); + rExecuteDialogs.erase(std::remove_if(rExecuteDialogs.begin(), rExecuteDialogs.end(), [this](VclPtr<Dialog>& dialog){ return dialog.get() == this; }), rExecuteDialogs.end()); } void Dialog::EndDialog( long nResult ) |