2026-05-03 05:06 ftp://ftp.de.debian.org/debian/pool/main/libk/libkysdk-desktop/libkysdk-desktop_3.0.1.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --library=gtk --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 118 119 elapsed-time: 0.8 0.7 head-timing-info: old-timing-info: head results: libkysdk-desktop/kysdk-appmanager/src/appinfo.cpp:180:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IniFormat [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/src/appinfo.cpp:160:22: warning: Member variable 'AppInfoPrivate::mAllowAsDefault' is not initialized in the constructor. [uninitMemberVar] libkysdk-desktop/kysdk-appmanager/src/appinfo.cpp:160:22: warning: Member variable 'AppInfoPrivate::mTerminal' is not initialized in the constructor. [uninitMemberVar] libkysdk-desktop/kysdk-appmanager/src/appinfo.cpp:245:18: performance: Range variable 'key' should be declared as const reference. [iterateByValue] libkysdk-desktop/kysdk-appmanager/src/appinfo.cpp:239:22: style: Variable 'mimeType' can be declared as reference to const [constVariableReference] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:131:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ApplicationsLocation [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:156:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ApplicationsLocation [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:184:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ConfigLocation [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:207:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ConfigLocation [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:225:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ConfigLocation [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:243:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GenericDataLocation [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:311:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ConfigLocation [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:358:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ConfigLocation [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:127:41: style: The member function 'kdk::KAppManager::getApplications' can be static. [functionStatic] libkysdk-desktop/kysdk-appmanager/src/kappmanager.h:64:21: note: The member function 'kdk::KAppManager::getApplications' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:127:41: note: The member function 'kdk::KAppManager::getApplications' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:152:41: style: The member function 'kdk::KAppManager::getApplicationByMime' can be static. [functionStatic] libkysdk-desktop/kysdk-appmanager/src/kappmanager.h:73:21: note: The member function 'kdk::KAppManager::getApplicationByMime' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:152:41: note: The member function 'kdk::KAppManager::getApplicationByMime' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:180:40: style: The member function 'kdk::KAppManager::getAutoStartApplications' can be static. [functionStatic] libkysdk-desktop/kysdk-appmanager/src/kappmanager.h:81:22: note: The member function 'kdk::KAppManager::getAutoStartApplications' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:180:40: note: The member function 'kdk::KAppManager::getAutoStartApplications' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:205:24: style: The member function 'kdk::KAppManager::addAutoStartApplication' can be static. [functionStatic] libkysdk-desktop/kysdk-appmanager/src/kappmanager.h:90:20: note: The member function 'kdk::KAppManager::addAutoStartApplication' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:205:24: note: The member function 'kdk::KAppManager::addAutoStartApplication' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:223:24: style: The member function 'kdk::KAppManager::removeAutoStartApplication' can be static. [functionStatic] libkysdk-desktop/kysdk-appmanager/src/kappmanager.h:99:20: note: The member function 'kdk::KAppManager::removeAutoStartApplication' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:223:24: note: The member function 'kdk::KAppManager::removeAutoStartApplication' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:302:24: style: The member function 'kdk::KAppManager::setDefaultApplicationByMime' can be static. [functionStatic] libkysdk-desktop/kysdk-appmanager/src/kappmanager.h:127:20: note: The member function 'kdk::KAppManager::setDefaultApplicationByMime' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:302:24: note: The member function 'kdk::KAppManager::setDefaultApplicationByMime' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:349:24: style: The member function 'kdk::KAppManager::setDefaultApplicationByType' can be static. [functionStatic] libkysdk-desktop/kysdk-appmanager/src/kappmanager.h:137:20: note: The member function 'kdk::KAppManager::setDefaultApplicationByType' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:349:24: note: The member function 'kdk::KAppManager::setDefaultApplicationByType' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:399:27: style: The member function 'kdk::KAppManager::findDesktopFile' can be static. [functionStatic] libkysdk-desktop/kysdk-appmanager/src/kappmanager.h:140:20: note: The member function 'kdk::KAppManager::findDesktopFile' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:399:27: note: The member function 'kdk::KAppManager::findDesktopFile' can be static. libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:259:19: style: Variable 'path' can be declared as reference to const [constVariableReference] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:295:19: style: Variable 'result' can be declared as pointer to const [constVariablePointer] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:295:19: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libkysdk-desktop/kysdk-appmanager/src/kappmanager.cpp:296:13: style: Unused variable: defaultApplication [unusedVariable] libkysdk-desktop/kysdk-appmanager/test/main.cpp:89:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIDEO [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-appmanager/test/main.cpp:39:24: style: Local variable 'info' shadows outer variable [shadowVariable] libkysdk-desktop/kysdk-appmanager/test/main.cpp:31:19: note: Shadowed declaration libkysdk-desktop/kysdk-appmanager/test/main.cpp:39:24: note: Shadow variable libkysdk-desktop/kysdk-appmanager/test/main.cpp:51:24: style: Local variable 'info' shadows outer variable [shadowVariable] libkysdk-desktop/kysdk-appmanager/test/main.cpp:31:19: note: Shadowed declaration libkysdk-desktop/kysdk-appmanager/test/main.cpp:51:24: note: Shadow variable libkysdk-desktop/kysdk-appmanager/test/main.cpp:63:24: style: Local variable 'info' shadows outer variable [shadowVariable] libkysdk-desktop/kysdk-appmanager/test/main.cpp:31:19: note: Shadowed declaration libkysdk-desktop/kysdk-appmanager/test/main.cpp:63:24: note: Shadow variable libkysdk-desktop/kysdk-notification/src/knotifier.cpp:58:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReplyMessage [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-notification/src/knotifier.cpp:71:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d_ptr [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-notification/src/knotifier.cpp:74:6: style: Class 'KNotifierPrivate' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libkysdk-desktop/kysdk-notification/src/knotifier.cpp:93:5: style: Variable 'd' can be declared as pointer to const [constVariablePointer] libkysdk-desktop/kysdk-notification/testNotifier/widget.h:36:5: style: Class 'Widget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libkysdk-desktop/kysdk-notification/testNotifier/widget.cpp:84:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AllTheTime [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-notification/testNotifier/widget.cpp:99:50: performance: Function parameter 'actionKey' should be passed by const reference. [passedByValue] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.cpp:65:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IniFormat [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.h:44:13: style:inconclusive: Either there is a missing 'override', or the member function 'Keybind::settingPath' can be const. [functionConst] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.h:45:13: style:inconclusive: Either there is a missing 'override', or the member function 'Keybind::sctionName' can be const. [functionConst] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.h:44:13: performance: Function 'settingPath()' should return member 'mSettingsPath' by const reference. [returnByReference] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.h:45:13: performance: Function 'sctionName()' should return member 'mActionName' by const reference. [returnByReference] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.cpp:67:17: style: Local variable 'exec' shadows outer argument [shadowArgument] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.cpp:60:38: note: Shadowed declaration libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.cpp:67:17: note: Shadow variable libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.h:41:29: performance: Function parameter 'bindKey' should be passed by const reference. [passedByValue] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.h:42:28: performance: Function parameter 'execName' should be passed by const reference. [passedByValue] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybind.cpp:27:91: performance: Function parameter 'componentName' should be passed by const reference. [passedByValue] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybindingsmanager.cpp:144:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IniFormat [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-shortcut/kdkshortcut/keybindingsmanager.h:35:5: style: Class 'KeybindingsManager' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libkysdk-desktop/kysdk-shortcut/kdkshortcut/main.cpp:41:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ExportAllSlots [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:330:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:411:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:459:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:535:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AccelNone [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:551:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:126:17: error: Using pointer that is a temporary. [danglingTemporaryLifetime] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:121:48: note: Pointer to container is created here. libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:121:41: note: Temporary created here. libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:126:17: note: Using pointer that is a temporary. libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:74:38: style: Condition 'name.isNull()' is always false [knownConditionTrueFalse] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:74:21: note: Assuming that condition 'name.isEmpty()' is not redundant libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:74:38: note: Condition 'name.isNull()' is always false libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:140:38: style: Condition 'name.isNull()' is always false [knownConditionTrueFalse] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:140:21: note: Assuming that condition 'name.isEmpty()' is not redundant libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:140:38: note: Condition 'name.isNull()' is always false libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:241:13: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:233:57: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:233:20: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:241:13: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:242:13: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:233:57: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:233:20: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:242:13: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:242:17: warning: If memory allocation fails, then there is a possible null pointer dereference: curr->data [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:241:59: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:241:26: note: Assignment 'curr->data=(struct KYSDKGlobalShortcutInfo*)calloc(1,sizeof(struct KYSDKGlobalShortcutInfo))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:242:17: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:243:13: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:233:57: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:233:20: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:243:13: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:247:17: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:233:57: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:233:20: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:245:36: note: Assuming container is not empty libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:247:17: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:266:9: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:266:9: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:267:9: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:267:9: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:267:13: warning: If memory allocation fails, then there is a possible null pointer dereference: curr->data [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:266:55: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:266:22: note: Assignment 'curr->data=(struct KYSDKGlobalShortcutInfo*)calloc(1,sizeof(struct KYSDKGlobalShortcutInfo))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:267:13: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:268:9: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:268:9: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:269:9: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:269:9: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:270:9: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:270:9: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:300:9: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:300:9: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:301:9: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:301:9: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:301:13: warning: If memory allocation fails, then there is a possible null pointer dereference: curr->data [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:300:55: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:300:22: note: Assignment 'curr->data=(struct KYSDKGlobalShortcutInfo*)calloc(1,sizeof(struct KYSDKGlobalShortcutInfo))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:301:13: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:302:9: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:302:9: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:303:26: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:303:26: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:313:13: warning: If memory allocation fails, then there is a possible null pointer dereference: curr [nullPointerOutOfMemory] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:53: note: Assuming allocation function fails libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:16: note: Assignment 'curr=(struct _KYSDKGlobalShortcutInfoList*)calloc(1,sizeof(struct _KYSDKGlobalShortcutInfoList))', assigned value is 0 libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:311:46: note: Assuming container is not empty libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:313:13: note: Null pointer dereference libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:233:20: style: C-style pointer casting [cstyleCast] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:241:26: style: C-style pointer casting [cstyleCast] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:258:16: style: C-style pointer casting [cstyleCast] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:266:22: style: C-style pointer casting [cstyleCast] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:292:16: style: C-style pointer casting [cstyleCast] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:300:22: style: C-style pointer casting [cstyleCast] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:311:27: style: Local variable 'key' shadows outer argument [shadowArgument] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:277:83: note: Shadowed declaration libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:311:27: note: Shadow variable libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:384:21: style: Local variable 'key' shadows outer variable [shadowVariable] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:346:13: note: Shadowed declaration libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:384:21: note: Shadow variable libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:111:56: performance: Function parameter 'name' should be passed by const reference. [passedByValue] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:79:20: style: Variable 'entry' can be declared as reference to const [constVariableReference] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:145:20: style: Variable 'entry' can be declared as reference to const [constVariableReference] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:548:20: style: Variable 'entry' can be declared as reference to const [constVariableReference] libkysdk-desktop/kysdk-shortcut/libkyshortcut/kglobalshortcut.cpp:82:9: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] libkysdk-desktop/kysdk-shortcut/libkyshortcut/libkyshortcut.cpp:81:34: style: The scope of the variable 'tmp' can be reduced. [variableScope] libkysdk-desktop/kysdk-shortcut/utils/kshortcututil.cpp:32:28: style: The member function 'KShortcutUtil::listExistsShortcutPath' can be static. [functionStatic] libkysdk-desktop/kysdk-shortcut/utils/kshortcututil.h:65:17: note: The member function 'KShortcutUtil::listExistsShortcutPath' can be static. libkysdk-desktop/kysdk-shortcut/utils/kshortcututil.cpp:32:28: note: The member function 'KShortcutUtil::listExistsShortcutPath' can be static. libkysdk-desktop/kysdk-shortcut/utils/kshortcututil.cpp:85:18: style: Local variable 'dir' shadows outer argument [shadowArgument] libkysdk-desktop/kysdk-shortcut/utils/kshortcututil.cpp:78:65: note: Shadowed declaration libkysdk-desktop/kysdk-shortcut/utils/kshortcututil.cpp:85:18: note: Shadow variable libkysdk-desktop/kysdk-shortcut/utils/kshortcututil.cpp:116:17: performance:inconclusive: Use const reference for 'pathStr' to avoid unnecessary data copying. [redundantCopyLocalConst] libkysdk-desktop/kysdk-shortcut/utils/kshortcututil.cpp:78:47: performance: Function parameter 'name' should be passed by const reference. [passedByValue] libkysdk-desktop/kysdk-soundeffects/src/ksoundeffects.cpp:114:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoError [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-soundeffects/src/ksoundeffects.cpp:97:72: performance: Function parameter 'str' should be passed by const reference. [passedByValue] libkysdk-desktop/kysdk-soundeffects/test/testsoundeffects/widget.h:32:5: style: Class 'Widget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libkysdk-desktop/kysdk-soundeffects/test/testsoundeffects/widget.cpp:61:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_VOLUME_CHANGE [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-soundeffects/test/testsoundeffects/widget.cpp:59:68: performance: Function parameter 'text' should be passed by const reference. [passedByValue] libkysdk-desktop/kysdk-thememanager/src/kthememanager.cpp:72:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d_ptr [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-thememanager/src/kthememanager.cpp:96:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable changed [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-thememanager/src/kthememanager.cpp:134:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable styleList [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-thememanager/src/kthememanager.cpp:192:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseSensitive [valueFlowBailoutIncompleteVar] libkysdk-desktop/kysdk-thememanager/src/kthememanager.cpp:132:33: style:inconclusive: Either there is a missing 'override', or the member function 'kdk::KThemeManager::getSupportSystemStyle' can be const. [functionConst] libkysdk-desktop/kysdk-thememanager/src/kthememanager.h:64:17: note: Either there is a missing 'override', or the member function 'kdk::KThemeManager::getSupportSystemStyle' can be const. libkysdk-desktop/kysdk-thememanager/src/kthememanager.cpp:132:33: note: Either there is a missing 'override', or the member function 'kdk::KThemeManager::getSupportSystemStyle' can be const. libkysdk-desktop/kysdk-thememanager/src/kthememanager.h:47:5: style: Class 'KThemeManager' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libkysdk-desktop/kysdk-thememanager/src/kthememanager.cpp:75:5: style: Class 'KThemeManagerPrivate' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libkysdk-desktop/kysdk-thememanager/src/kthememanager.cpp:241:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libkysdk-desktop/kysdk-thememanager/test/main.cpp:32:80: performance: Function parameter 'property' should be passed by const reference. [passedByValue] libkysdk-desktop/tests/test-appmanager/appmanagertest.cpp:88:19: style: Variable 'app' can be declared as pointer to const [constVariablePointer] libkysdk-desktop/tests/test-appmanager/appmanagertest.cpp:94:19: style: Variable 'app' can be declared as pointer to const [constVariablePointer] libkysdk-desktop/tests/test-notification/notificationtest.cpp:37:24: style: Either there is a missing 'override', or the member function 'NotificationTest::notifierTest' can be static. [functionStatic] libkysdk-desktop/tests/test-notification/notificationtest.cpp:33:10: note: Either there is a missing 'override', or the member function 'NotificationTest::notifierTest' can be static. libkysdk-desktop/tests/test-notification/notificationtest.cpp:37:24: note: Either there is a missing 'override', or the member function 'NotificationTest::notifierTest' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:41:20: style: Either there is a missing 'override', or the member function 'TestShortcut::testCreateGlobalShortcut' can be static. [functionStatic] libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:30:10: note: Either there is a missing 'override', or the member function 'TestShortcut::testCreateGlobalShortcut' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:41:20: note: Either there is a missing 'override', or the member function 'TestShortcut::testCreateGlobalShortcut' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:125:20: style: Either there is a missing 'override', or the member function 'TestShortcut::testDeleteGlobalShortcut' can be static. [functionStatic] libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:31:10: note: Either there is a missing 'override', or the member function 'TestShortcut::testDeleteGlobalShortcut' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:125:20: note: Either there is a missing 'override', or the member function 'TestShortcut::testDeleteGlobalShortcut' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:78:20: style: Either there is a missing 'override', or the member function 'TestShortcut::testGlobalShortcutIsAvailable' can be static. [functionStatic] libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:32:10: note: Either there is a missing 'override', or the member function 'TestShortcut::testGlobalShortcutIsAvailable' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:78:20: note: Either there is a missing 'override', or the member function 'TestShortcut::testGlobalShortcutIsAvailable' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:85:20: style: Either there is a missing 'override', or the member function 'TestShortcut::testSetGlobalShortcut' can be static. [functionStatic] libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:33:10: note: Either there is a missing 'override', or the member function 'TestShortcut::testSetGlobalShortcut' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:85:20: note: Either there is a missing 'override', or the member function 'TestShortcut::testSetGlobalShortcut' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:92:20: style: Either there is a missing 'override', or the member function 'TestShortcut::testGetGlobalShortcuts' can be static. [functionStatic] libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:34:10: note: Either there is a missing 'override', or the member function 'TestShortcut::testGetGlobalShortcuts' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:92:20: note: Either there is a missing 'override', or the member function 'TestShortcut::testGetGlobalShortcuts' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:99:20: style: Either there is a missing 'override', or the member function 'TestShortcut::testGetGlobalShortcutsByKey' can be static. [functionStatic] libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:35:10: note: Either there is a missing 'override', or the member function 'TestShortcut::testGetGlobalShortcutsByKey' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:99:20: note: Either there is a missing 'override', or the member function 'TestShortcut::testGetGlobalShortcutsByKey' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:106:20: style:inconclusive: Either there is a missing 'override', or the member function 'TestShortcut::testDestroyInfoList' can be const. [functionConst] libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:36:10: note: Either there is a missing 'override', or the member function 'TestShortcut::testDestroyInfoList' can be const. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:106:20: note: Either there is a missing 'override', or the member function 'TestShortcut::testDestroyInfoList' can be const. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:113:20: style: Either there is a missing 'override', or the member function 'TestShortcut::testKeyCombinationToString' can be static. [functionStatic] libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:37:10: note: Either there is a missing 'override', or the member function 'TestShortcut::testKeyCombinationToString' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:113:20: note: Either there is a missing 'override', or the member function 'TestShortcut::testKeyCombinationToString' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:119:20: style: Either there is a missing 'override', or the member function 'TestShortcut::testStringToKeyCombination' can be static. [functionStatic] libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:38:10: note: Either there is a missing 'override', or the member function 'TestShortcut::testStringToKeyCombination' can be static. libkysdk-desktop/tests/test-shortcut/shortcuttest.cpp:119:20: note: Either there is a missing 'override', or the member function 'TestShortcut::testStringToKeyCombination' can be static. libkysdk-desktop/tests/test-soundeffects/soundeffectstest.cpp:39:24: style: Either there is a missing 'override', or the member function 'SoundEffectsTest::soundeffectsTest' can be static. [functionStatic] libkysdk-desktop/tests/test-soundeffects/soundeffectstest.cpp:35:10: note: Either there is a missing 'override', or the member function 'SoundEffectsTest::soundeffectsTest' can be static. libkysdk-desktop/tests/test-soundeffects/soundeffectstest.cpp:39:24: note: Either there is a missing 'override', or the member function 'SoundEffectsTest::soundeffectsTest' can be static. diff: 2.20.0 libkysdk-desktop/kysdk-thememanager/src/kthememanager.h:137:32: performance: Function parameter 'property' should be passed by const reference. [passedByValue] DONE