refactor(qt): add automatic Qt version detection and update compatibi… #576
Annotations
10 warnings
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/Widget/DriverListView.cpp#L17
Include file: <QPainterPath> not found. Please note: Cppcheck does not need standard library headers to get proper results.
|
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/Widget/DriverListView.cpp#L16
Include file: <QStandardItemModel> not found. Please note: Cppcheck does not need standard library headers to get proper results.
|
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/DeviceManager/DeviceStorage.cpp#L287
The scope of the variable 'strBootdeviceName' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:\012void f(int x)\012{\012 int i = 0;\012 if (x) {\012 // it's safe to move 'int i = 0;' here\012 for (int n = 0; n < 10; ++n) {\012 // it is possible but not safe to move 'int i = 0;' here\012 do_something(&i);\012 }\012 }\012}\012When you see this message it is always safe to reduce the variable scope 1 level.
|
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/DeviceManager/DeviceStorage.cpp#L10
Include file: <cmath> not found. Please note: Cppcheck does not need standard library headers to get proper results.
|
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/DeviceManager/DeviceStorage.cpp#L9
Include file: <cfloat> not found. Please note: Cppcheck does not need standard library headers to get proper results.
|
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/DeviceManager/DeviceStorage.cpp#L8
Include file: "commondefine.h" not found.
|
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/DeviceManager/DeviceStorage.cpp#L7
Include file: "commonfunction.h" not found.
|
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/DeviceManager/DeviceManager.cpp#L1364
Variable 'audio' can be declared as pointer to const
|
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/DeviceManager/DeviceManager.cpp#L1367
Either the condition 'audio' is redundant or there is possible null pointer dereference: audio.
|
|
Run linuxdeepin/action-cppcheck@main:
deepin-devicemanager/src/DeviceManager/DeviceInfo.cpp#L819
Variable 'out' is used to iterate by value. It could be declared as a const reference which is usually faster and recommended in C++.
|
Loading