Fixed defects
List of Defects
Error: COMPILER_WARNING (CWE-477): [#def1]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/chmodjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/chmodjob.cpp:209:71: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 209 | q->connect(askUserActionInterface, skipSignal, q, [=](KIO::SkipDialog_Result result, KJob *parentJob) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/chmodjob.cpp:209:71: note: add explicit ‘this’ or ‘*this’ capture
# 207|
# 208| auto skipSignal = &AskUserActionInterface::askUserSkipResult;
# 209|-> q->connect(askUserActionInterface, skipSignal, q, [=](KIO::SkipDialog_Result result, KJob *parentJob) {
# 210| Q_ASSERT(q == parentJob);
# 211| q->disconnect(askUserActionInterface, skipSignal, q, nullptr);
Error: COMPILER_WARNING (CWE-477): [#def2]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1329:63: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1329 | QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1329:63: note: add explicit ‘this’ or ‘*this’ capture
# 1327|
# 1328| auto renameSignal = &KIO::AskUserActionInterface::askUserRenameResult;
# 1329|-> QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
# 1330| Q_ASSERT(parentJob == q);
# 1331| // Only receive askUserRenameResult once per rename dialog
Error: COMPILER_WARNING (CWE-477): [#def3]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1437:81: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1437 | QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1437:81: note: add explicit ‘this’ or ‘*this’ capture
# 1435|
# 1436| auto skipSignal = &KIO::AskUserActionInterface::askUserSkipResult;
# 1437|-> QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
# 1438| Q_ASSERT(parentJob == q);
# 1439|
Error: COMPILER_WARNING (CWE-477): [#def4]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1712:71: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1712 | QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1712:71: note: add explicit ‘this’ or ‘*this’ capture
# 1710|
# 1711| auto renameSignal = &KIO::AskUserActionInterface::askUserRenameResult;
# 1712|-> QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
# 1713| Q_ASSERT(parentJob == q);
# 1714| // Only receive askUserRenameResult once per rename dialog
Error: COMPILER_WARNING (CWE-477): [#def5]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1741:69: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1741 | QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1741:69: note: add explicit ‘this’ or ‘*this’ capture
# 1739|
# 1740| auto skipSignal = &KIO::AskUserActionInterface::askUserSkipResult;
# 1741|-> QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
# 1742| Q_ASSERT(parentJob == q);
# 1743| // Only receive askUserSkipResult once per skip dialog
Error: COMPILER_WARNING (CWE-477): [#def6]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1928:69: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1928 | QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:1928:69: note: add explicit ‘this’ or ‘*this’ capture
# 1926|
# 1927| auto skipSignal = &KIO::AskUserActionInterface::askUserSkipResult;
# 1928|-> QObject::connect(askUserActionInterface, skipSignal, q, [=](SkipDialog_Result result, KJob *parentJob) {
# 1929| Q_ASSERT(parentJob == q);
# 1930| // Only receive askUserSkipResult once per skip dialog
Error: COMPILER_WARNING (CWE-477): [#def7]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:2385:79: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2385 | QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/copyjob.cpp:2385:79: note: add explicit ‘this’ or ‘*this’ capture
# 2383| } else {
# 2384| auto renameSignal = &KIO::AskUserActionInterface::askUserRenameResult;
# 2385|-> QObject::connect(askUserActionInterface, renameSignal, q, [=](RenameDialog_Result result, const QUrl &newUrl, KJob *parentJob) {
# 2386| Q_ASSERT(parentJob == q);
# 2387| // Only receive askUserRenameResult once per rename dialog
Error: COMPILER_WARNING (CWE-477): [#def8]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp:197:75: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 197 | QObject::connect(m_ioworker, &DeleteJobIOWorker::rmfileResult, q, [=](bool result, bool isLink) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp:197:75: note: add explicit ‘this’ or ‘*this’ capture
# 195| m_ioworker->moveToThread(m_thread);
# 196| QObject::connect(m_thread, &QThread::finished, m_ioworker, &QObject::deleteLater);
# 197|-> QObject::connect(m_ioworker, &DeleteJobIOWorker::rmfileResult, q, [=](bool result, bool isLink) {
# 198| this->rmFileResult(result, isLink);
# 199| });
Error: COMPILER_WARNING (CWE-477): [#def9]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp:200:75: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 200 | QObject::connect(m_ioworker, &DeleteJobIOWorker::rmddirResult, q, [=](bool result) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/deletejob.cpp:200:75: note: add explicit ‘this’ or ‘*this’ capture
# 198| this->rmFileResult(result, isLink);
# 199| });
# 200|-> QObject::connect(m_ioworker, &DeleteJobIOWorker::rmddirResult, q, [=](bool result) {
# 201| this->rmdirResult(result);
# 202| });
Error: COMPILER_WARNING (CWE-477): [#def10]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/filecopyjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/filecopyjob.cpp:362:69: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 362 | q->connect(askUserActionInterface, renameSignal, q, [=](KIO::RenameDialog_Result result, const QUrl &, const KJob *askJob) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/filecopyjob.cpp:362:69: note: add explicit ‘this’ or ‘*this’ capture
# 360| auto renameSignal = &AskUserActionInterface::askUserRenameResult;
# 361|
# 362|-> q->connect(askUserActionInterface, renameSignal, q, [=](KIO::RenameDialog_Result result, const QUrl &, const KJob *askJob) {
# 363| Q_ASSERT(kioJob == askJob);
# 364|
Error: COMPILER_WARNING (CWE-477): [#def11]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:133:45: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 133 | QObject::connect(job, &KJob::result, q, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:133:45: note: add explicit ‘this’ or ‘*this’ capture
# 131| job->setUiDelegate(nullptr);
# 132| q->addSubjob(job);
# 133|-> QObject::connect(job, &KJob::result, q, [=]() {
# 134| const int errCode = job->error();
# 135| if (errCode) {
Error: COMPILER_WARNING (CWE-477): [#def12]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:210:45: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 210 | QObject::connect(job, &KJob::result, q, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:210:45: note: add explicit ‘this’ or ‘*this’ capture
# 208| job->setUiDelegate(nullptr);
# 209| q->addSubjob(job);
# 210|-> QObject::connect(job, &KJob::result, q, [=]() {
# 211| const int errCode = job->error();
# 212| if (errCode) {
Error: COMPILER_WARNING (CWE-477): [#def13]
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:229:64: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 229 | QObject::connect(job, &KIO::TransferJob::mimeTypeFound, q, [=](KIO::Job *, const QString &mimetype) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/core/mimetypefinderjob.cpp:229:64: note: add explicit ‘this’ or ‘*this’ capture
# 227| }
# 228| });
# 229|-> QObject::connect(job, &KIO::TransferJob::mimeTypeFound, q, [=](KIO::Job *, const QString &mimetype) {
# 230| if (m_followRedirections) { // Update our URL in case of a redirection
# 231| m_url = job->url();
Error: COMPILER_WARNING (CWE-563): [#def14]
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/kfileplacesview.cpp: scope_hint: In member function ‘int KFilePlacesViewDelegate::sectionHeaderHeight(const QModelIndex&) const’
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/kfileplacesview.cpp:642:69: warning[-Wunused-parameter]: unused parameter ‘index’
# 642 | int KFilePlacesViewDelegate::sectionHeaderHeight(const QModelIndex &index) const
# | ~~~~~~~~~~~~~~~~~~~^~~~~
# 640| }
# 641|
# 642|-> int KFilePlacesViewDelegate::sectionHeaderHeight(const QModelIndex &index) const
# 643| {
# 644| // Account for the spacing between header and item
Error: COMPILER_WARNING (CWE-477): [#def15]
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:741:93: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 741 | QObject::connect(m_newFolderShortcutAction, &QAction::changed, act, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:741:93: note: add explicit ‘this’ or ‘*this’ capture
# 739| act->setShortcutContext(Qt::WidgetShortcut);
# 740| // We also need to react to shortcut changes.
# 741|-> QObject::connect(m_newFolderShortcutAction, &QAction::changed, act, [=]() {
# 742| act->setShortcuts(m_newFolderShortcutAction->shortcuts());
# 743| });
Error: COMPILER_WARNING (CWE-477): [#def16]
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:815:99: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 815 | QObject::connect(m_newFileShortcutAction, &QAction::changed, act, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:815:99: note: add explicit ‘this’ or ‘*this’ capture
# 813| act->setShortcutContext(Qt::WidgetShortcut);
# 814| // We also need to react to shortcut changes.
# 815|-> QObject::connect(m_newFileShortcutAction, &QAction::changed, act, [=]() {
# 816| act->setShortcuts(m_newFileShortcutAction->shortcuts());
# 817| });
Error: COMPILER_WARNING (CWE-477): [#def17]
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:1419:43: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1419 | connect(nameJob, &KJob::result, this, [=]() mutable {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/filewidgets/knewfilemenu.cpp:1419:43: note: add explicit ‘this’ or ‘*this’ capture
# 1417|
# 1418| auto nameJob = new KIO::NameFinderJob(d->m_baseUrl, name, this);
# 1419|-> connect(nameJob, &KJob::result, this, [=]() mutable {
# 1420| if (!nameJob->error()) {
# 1421| d->m_baseUrl = nameJob->baseUrl();
Error: COMPILER_WARNING (CWE-758): [#def18]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:13:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
# 13 | #if USE_DBUS
# | ^~~~~~~~
# 11| #include "openfilemanagerwindowjob_p.h"
# 12|
# 13|-> #if USE_DBUS
# 14| #include <QDBusConnection>
# 15| #include <QDBusMessage>
Error: COMPILER_WARNING (CWE-758): [#def19]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:48:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
# 48 | #if USE_DBUS
# | ^~~~~~~~
# 46| ~OpenFileManagerWindowJobPrivate() = default;
# 47|
# 48|-> #if USE_DBUS
# 49| void createDBusStrategy()
# 50| {
Error: COMPILER_WARNING (CWE-758): [#def20]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:77:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
# 77 | #if USE_DBUS
# | ^~~~~~~~
# 75| , d(new OpenFileManagerWindowJobPrivate(this))
# 76| {
# 77|-> #if USE_DBUS
# 78| d->createDBusStrategy();
# 79| #elif defined(Q_OS_WINDOWS)
Error: COMPILER_WARNING (CWE-758): [#def21]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:129:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
# 129 | #if USE_DBUS
# | ^~~~~~~~
# 127| }
# 128|
# 129|-> #if USE_DBUS
# 130| void OpenFileManagerWindowDBusStrategy::start(const QList<QUrl> &urls, const QByteArray &asn)
# 131| {
Error: COMPILER_WARNING (CWE-477): [#def22]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:144:78: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 144 | QObject::connect(watcher, &QDBusPendingCallWatcher::finished, m_job, [=](QDBusPendingCallWatcher *watcher) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:144:78: note: add explicit ‘this’ or ‘*this’ capture
# 142| QDBusPendingReply<void> reply = QDBusConnection::sessionBus().asyncCall(msg);
# 143| QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, m_job);
# 144|-> QObject::connect(watcher, &QDBusPendingCallWatcher::finished, m_job, [=](QDBusPendingCallWatcher *watcher) {
# 145| QDBusPendingReply<void> reply = *watcher;
# 146| watcher->deleteLater();
Error: COMPILER_WARNING (CWE-758): [#def23]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob.cpp:11: included_from: Included from here.
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openfilemanagerwindowjob_p.h:42:5: warning[-Wexpansion-to-defined]: this use of "defined" may not be portable
# 42 | #if USE_DBUS
# | ^~~~~~~~
# 40| };
# 41|
# 42|-> #if USE_DBUS
# 43| class OpenFileManagerWindowDBusStrategy : public AbstractOpenFileManagerWindowStrategy
# 44| {
Error: COMPILER_WARNING (CWE-477): [#def24]
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openurljob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openurljob.cpp:444:98: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 444 | QObject::connect(untrustedProgramHandler, &KIO::UntrustedProgramHandlerInterface::result, q, [=](bool result) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/gui/openurljob.cpp:444:98: note: add explicit ‘this’ or ‘*this’ capture
# 442| return;
# 443| }
# 444|-> QObject::connect(untrustedProgramHandler, &KIO::UntrustedProgramHandlerInterface::result, q, [=](bool result) {
# 445| if (result) {
# 446| QString errorString;
Error: COMPILER_WARNING (CWE-563): [#def25]
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/http/http.cpp: scope_hint: In member function ‘KIO::WorkerResult HTTPProtocol::davGeneric(const QUrl&, KIO::HTTP_METHOD, qint64)’
kf6-kio-6.0.0-build/kio-6.0.0/src/kioworkers/http/http.cpp:1146:93: warning[-Wunused-parameter]: unused parameter ‘size’
# 1146 | KIO::WorkerResult HTTPProtocol::davGeneric(const QUrl &url, KIO::HTTP_METHOD method, qint64 size)
# | ~~~~~~~^~~~
# 1144| }
# 1145|
# 1146|-> KIO::WorkerResult HTTPProtocol::davGeneric(const QUrl &url, KIO::HTTP_METHOD method, qint64 size)
# 1147| {
# 1148| // TODO what about size?
Error: COMPILER_WARNING (CWE-477): [#def26]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/dropjob.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/dropjob.cpp:406:30: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 406 | QTimer::singleShot(0, q, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/dropjob.cpp:406:30: note: add explicit ‘this’ or ‘*this’ capture
# 404| // So we need to give the menu time in case it needs to emit triggered.
# 405| // If it does, the cleanup will be done by slotTriggered.
# 406|-> QTimer::singleShot(0, q, [=]() {
# 407| if (!m_triggered) {
# 408| q->setError(KIO::ERR_USER_CANCELED);
Error: COMPILER_WARNING (CWE-477): [#def27]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/fileundomanager.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/fileundomanager.cpp:380:109: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 380 | QObject::connect(askUserInterface, &KIO::AskUserActionInterface::askUserDeleteResult, this, [=](bool allowDelete) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/fileundomanager.cpp:380:109: note: add explicit ‘this’ or ‘*this’ capture
# 378| if (!d->m_connectedToAskUserInterface) {
# 379| d->m_connectedToAskUserInterface = true;
# 380|-> QObject::connect(askUserInterface, &KIO::AskUserActionInterface::askUserDeleteResult, this, [=](bool allowDelete) {
# 381| if (allowDelete) {
# 382| d->startUndo();
Error: COMPILER_WARNING (CWE-477): [#def28]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:1989:22: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 1989 | auto chmodDirs = [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:1989:22: note: add explicit ‘this’ or ‘*this’ capture
# 1987| };
# 1988|
# 1989|-> auto chmodDirs = [=]() {
# 1990| if (dirs.isEmpty()) {
# 1991| setDirty(false);
Error: COMPILER_WARNING (CWE-477): [#def29]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2054:62: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2054 | connect(d->m_ui.lineEdit, &QLineEdit::textChanged, this, [=](const QString &text) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2054:62: note: add explicit ‘this’ or ‘*this’ capture
# 2052| d->m_ui.sha512CopyButton->hide();
# 2053|
# 2054|-> connect(d->m_ui.lineEdit, &QLineEdit::textChanged, this, [=](const QString &text) {
# 2055| slotVerifyChecksum(text.toLower());
# 2056| });
Error: COMPILER_WARNING (CWE-477): [#def30]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2067:65: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2067 | connect(d->m_ui.md5CopyButton, &QPushButton::clicked, this, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2067:65: note: add explicit ‘this’ or ‘*this’ capture
# 2065|
# 2066| auto clipboard = QApplication::clipboard();
# 2067|-> connect(d->m_ui.md5CopyButton, &QPushButton::clicked, this, [=]() {
# 2068| clipboard->setText(d->m_md5);
# 2069| });
Error: COMPILER_WARNING (CWE-477): [#def31]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2071:66: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2071 | connect(d->m_ui.sha1CopyButton, &QPushButton::clicked, this, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2071:66: note: add explicit ‘this’ or ‘*this’ capture
# 2069| });
# 2070|
# 2071|-> connect(d->m_ui.sha1CopyButton, &QPushButton::clicked, this, [=]() {
# 2072| clipboard->setText(d->m_sha1);
# 2073| });
Error: COMPILER_WARNING (CWE-477): [#def32]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2075:68: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2075 | connect(d->m_ui.sha256CopyButton, &QPushButton::clicked, this, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2075:68: note: add explicit ‘this’ or ‘*this’ capture
# 2073| });
# 2074|
# 2075|-> connect(d->m_ui.sha256CopyButton, &QPushButton::clicked, this, [=]() {
# 2076| clipboard->setText(d->m_sha256);
# 2077| });
Error: COMPILER_WARNING (CWE-477): [#def33]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2079:68: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2079 | connect(d->m_ui.sha512CopyButton, &QPushButton::clicked, this, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2079:68: note: add explicit ‘this’ or ‘*this’ capture
# 2077| });
# 2078|
# 2079|-> connect(d->m_ui.sha512CopyButton, &QPushButton::clicked, this, [=]() {
# 2080| clipboard->setText(d->m_sha512);
# 2081| });
Error: COMPILER_WARNING (CWE-477): [#def34]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2083:63: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2083 | connect(d->m_ui.pasteButton, &QPushButton::clicked, this, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2083:63: note: add explicit ‘this’ or ‘*this’ capture
# 2081| });
# 2082|
# 2083|-> connect(d->m_ui.pasteButton, &QPushButton::clicked, this, [=]() {
# 2084| d->m_ui.lineEdit->setText(clipboard->text());
# 2085| });
Error: COMPILER_WARNING (CWE-477): [#def35]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2184:70: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2184 | connect(futureWatcher, &QFutureWatcher<QString>::finished, this, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2184:70: note: add explicit ‘this’ or ‘*this’ capture
# 2182| // Calculate checksum in another thread.
# 2183| auto futureWatcher = new QFutureWatcher<QString>(this);
# 2184|-> connect(futureWatcher, &QFutureWatcher<QString>::finished, this, [=]() {
# 2185| const QString checksum = futureWatcher->result();
# 2186| futureWatcher->deleteLater();
Error: COMPILER_WARNING (CWE-477): [#def36]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2359:70: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 2359 | connect(futureWatcher, &QFutureWatcher<QString>::finished, this, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/kpropertiesdialogbuiltin_p.cpp:2359:70: note: add explicit ‘this’ or ‘*this’ capture
# 2357| // Calculate checksum in another thread.
# 2358| auto futureWatcher = new QFutureWatcher<QString>(this);
# 2359|-> connect(futureWatcher, &QFutureWatcher<QString>::finished, this, [=]() {
# 2360| const QString checksum = futureWatcher->result();
# 2361| futureWatcher->deleteLater();
Error: COMPILER_WARNING (CWE-477): [#def37]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:165:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 165 | QMetaObject::invokeMethod(qGuiApp, [=] {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:165:40: note: add explicit ‘this’ or ‘*this’ capture
# 163| const QDateTime &mtimeDest)
# 164| {
# 165|-> QMetaObject::invokeMethod(qGuiApp, [=] {
# 166| auto *dlg = new KIO::RenameDialog(d->getParentWidget(job), title, src, dest, options, sizeSrc, sizeDest, ctimeSrc, ctimeDest, mtimeSrc, mtimeDest);
# 167|
Error: COMPILER_WARNING (CWE-477): [#def38]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:184:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 184 | QMetaObject::invokeMethod(qGuiApp, [=] {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:184:40: note: add explicit ‘this’ or ‘*this’ capture
# 182| void KIO::WidgetsAskUserActionHandler::askUserSkip(KJob *job, KIO::SkipDialog_Options options, const QString &errorText)
# 183| {
# 184|-> QMetaObject::invokeMethod(qGuiApp, [=] {
# 185| auto *dlg = new KIO::SkipDialog(d->getParentWidget(job), options, errorText);
# 186| dlg->setAttribute(Qt::WA_DeleteOnClose);
Error: COMPILER_WARNING (CWE-477): [#def39]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:334:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 334 | QMetaObject::invokeMethod(qGuiApp, [=] {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:334:40: note: add explicit ‘this’ or ‘*this’ capture
# 332| }
# 333|
# 334|-> QMetaObject::invokeMethod(qGuiApp, [=] {
# 335| const auto &[prettyList, dialogType, acceptButton, text, icon, title, singleUrl] = processAskDelete(urls, deletionType);
# 336| KMessageDialog *dlg = new KMessageDialog(dialogType, text, parent);
Error: COMPILER_WARNING (CWE-477): [#def40]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:348:48: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 348 | connect(dlg, &QDialog::finished, this, [=](const int buttonCode) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:348:48: note: add explicit ‘this’ or ‘*this’ capture
# 346| dlg->setDontAskAgainChecked(!ask);
# 347|
# 348|-> connect(dlg, &QDialog::finished, this, [=](const int buttonCode) {
# 349| const bool isDelete = (buttonCode == KMessageDialog::PrimaryAction);
# 350|
Error: COMPILER_WARNING (CWE-477): [#def41]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:424:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 424 | QMetaObject::invokeMethod(qGuiApp, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:424:40: note: add explicit ‘this’ or ‘*this’ capture
# 422| }
# 423|
# 424|-> QMetaObject::invokeMethod(qGuiApp, [=]() {
# 425| auto cancelButton = hasCancelButton ? KStandardGuiItem::cancel() : KGuiItem();
# 426| auto *dialog = new KMessageDialog(dlgType, text, d->getParentWidget(parent));
Error: COMPILER_WARNING (CWE-477): [#def42]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:437:51: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 437 | connect(dialog, &QDialog::finished, this, [=](const int result) {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:437:51: note: add explicit ‘this’ or ‘*this’ capture
# 435| dialog->setOpenExternalLinks(true); // Allow opening external links in the text labels
# 436|
# 437|-> connect(dialog, &QDialog::finished, this, [=](const int result) {
# 438| KIO::WorkerBase::ButtonCode btnCode;
# 439| switch (result) {
Error: COMPILER_WARNING (CWE-477): [#def43]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:525:40: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 525 | QMetaObject::invokeMethod(qGuiApp, [=] {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsaskuseractionhandler.cpp:525:40: note: add explicit ‘this’ or ‘*this’ capture
# 523| }
# 524|
# 525|-> QMetaObject::invokeMethod(qGuiApp, [=] {
# 526| if (decodedOk) { // Use KSslInfoDialog
# 527| KSslInfoDialog *ksslDlg = new KSslInfoDialog(parentWidget);
Error: COMPILER_WARNING (CWE-477): [#def44]
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsopenwithhandler.cpp: scope_hint: In lambda function
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsopenwithhandler.cpp:66:47: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 66 | connect(dialog, &QDialog::accepted, this, [=]() {
# | ^
kf6-kio-6.0.0-build/kio-6.0.0/src/widgets/widgetsopenwithhandler.cpp:66:47: note: add explicit ‘this’ or ‘*this’ capture
# 64| KOpenWithDialog *dialog = new KOpenWithDialog(urls, mimeType, QString(), QString(), parentWidget);
# 65| dialog->setAttribute(Qt::WA_DeleteOnClose);
# 66|-> connect(dialog, &QDialog::accepted, this, [=]() {
# 67| KService::Ptr service = dialog->service();
# 68| if (!service) {
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-177.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | kf6-kio-6.3.0-1.fc41 |
diffbase-store-results-to | /tmp/tmp7bf61r7h/kf6-kio-6.3.0-1.fc41.tar.xz |
diffbase-time-created | 2024-07-03 14:17:02 |
diffbase-time-finished | 2024-07-03 14:26:16 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp7bf61r7h/kf6-kio-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp7bf61r7h/kf6-kio-6.3.0-1.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-177.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kf6-kio-6.0.0-5.fc40 |
store-results-to | /tmp/tmpz2hl61pb/kf6-kio-6.0.0-5.fc40.tar.xz |
time-created | 2024-07-03 14:07:04 |
time-finished | 2024-07-03 14:16:40 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpz2hl61pb/kf6-kio-6.0.0-5.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpz2hl61pb/kf6-kio-6.0.0-5.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |