LithApp / Lith

Multiplatform, mobile-focused WeeChat relay client
https://lith.app
GNU General Public License v2.0
81 stars 7 forks source link

Fix warning in lambda #142

Closed chinese-soup closed 1 year ago

chinese-soup commented 1 year ago

The most important fix of all time.


/home/unko/repos/qt/Lith/src/settings.cpp: In lambda function:
/home/unko/repos/qt/Lith/src/settings.cpp:50:26: warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Wdeprecated]
   50 |     *testSettingsReady = [=](){
      |                          ^
/home/unko/repos/qt/Lith/src/settings.cpp:50:26: note: add explicit ‘this’ or ‘*this’ capture