Task #1492 - kglobalacceld-6.0.3-1.fc40/scan-results.err
back to task #1492download
Error: COMPILER_WARNING (CWE-563):
kglobalacceld-6.0.3-build/kglobalacceld-6.0.3/src/globalshortcutsregistry.cpp: scope_hint: In lambda function
kglobalacceld-6.0.3-build/kglobalacceld-6.0.3/src/globalshortcutsregistry.cpp:206:110: warning[-Wunused-parameter]: unused parameter ‘displayName’
# 206 | auto migrateTo = [this, componentName](KConfigGroup &group, const QString &actionName, const QString displayName) {
# | ~~~~~~~~~~~~~~^~~~~~~~~~~
# 204| const QString componentName = QFileInfo(fileName).fileName();
# 205|
# 206|-> auto migrateTo = [this, componentName](KConfigGroup &group, const QString &actionName, const QString displayName) {
# 207| QString migrateFrom = group.readEntry<QString>(QStringLiteral("X-KDE-Migrate-Shortcut"), QString());
# 208|
Error: CLANG_WARNING:
kglobalacceld-6.0.3-build/kglobalacceld-6.0.3/src/kglobalacceld.cpp:347:9: warning[deadcode.DeadStores]: Value stored to 'shortcut' is never read
# 345| GlobalShortcut *shortcut = d->findAction(actionId);
# 346| if (!shortcut) {
# 347|-> shortcut = d->addAction(actionId);
# 348| } else {
# 349| // a switch of locales is one common reason for a changing friendlyName
Error: CLANG_WARNING:
kglobalacceld-6.0.3-build/kglobalacceld-6.0.3/src/kglobalacceld.cpp:360:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'shortcut'
# 358| }
# 359| }
# 360|-> }
# 361|
# 362| QDBusObjectPath KGlobalAccelD::getComponent(const QString &componentUnique) const