Task #1459 - kf6-knewstuff-6.0.0-4.fc40/scan-results.err

back to task #1459
download
Error: COMPILER_WARNING (CWE-477):
kf6-knewstuff-6.0.0-build/knewstuff-6.0.0/src/core/commentsmodel.cpp: scope_hint: In lambda function
kf6-knewstuff-6.0.0-build/knewstuff-6.0.0/src/core/commentsmodel.cpp:60:75: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
#   60 |                 q->connect(provider.data(), &Provider::commentsLoaded, q, [=](const QList<std::shared_ptr<KNSCore::Comment>> &newComments) {
#      |                                                                           ^
kf6-knewstuff-6.0.0-build/knewstuff-6.0.0/src/core/commentsmodel.cpp:60:75: note: add explicit ‘this’ or ‘*this’ capture
#   58|                   comments.clear();
#   59|                   provider->disconnect(q);
#   60|->                 q->connect(provider.data(), &Provider::commentsLoaded, q, [=](const QList<std::shared_ptr<KNSCore::Comment>> &newComments) {
#   61|                       QList<std::shared_ptr<KNSCore::Comment>> actualNewComments;
#   62|                       for (const std::shared_ptr<KNSCore::Comment> &comment : newComments) {