deepin-dock-5.5.81-4.fc41

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/dbus/dbusdockadaptors.cpp: scope_hint: In member function ‘QStringList DBusDockAdaptors::GetLoadedPlugins()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/dbus/dbusdockadaptors.cpp:92:10: warning[-Wdeprecated-declarations]: ‘void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList<QString>::iterator; LessThan = DBusDockAdaptors::GetLoadedPlugins()::<lambda(const QString&, const QString&)>]’ is deprecated: Use std::sort
#   92 |     qSort(nameList.begin(), nameList.end(), [ = ] (const QString &name1, const QString &name2) {
#      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   93 |         return name1 > name2;
#      |         ~~~~~~~~~~~~~~~~~~~~~
#   94 |     });
#      |     ~~    
/usr/include/qt5/QtCore/qlist.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/qobject.h:49: included_from: Included from here.
/usr/include/qt5/QtCore/qalgorithms.h:181:46: note: declared here
#  181 | QT_DEPRECATED_X("Use std::sort") inline void qSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
#      |                                              ^~~~~
#   90|   
#   91|       // 排序,保持和原先任务栏右键菜单中的插件列表顺序一致
#   92|->     qSort(nameList.begin(), nameList.end(), [ = ] (const QString &name1, const QString &name2) {
#   93|           return name1 > name2;
#   94|       });

Error: COMPILER_WARNING (CWE-477): [#def2]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/appdrag.cpp: scope_hint: In member function ‘Qt::DropAction AppDrag::start(Qt::DropActions)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/appdrag.cpp:45:24: warning[-Wdeprecated-declarations]: ‘Qt::DropAction QDrag::start(Qt::DropActions)’ is deprecated: Use QDrag::exec() instead
#   45 |     return QDrag::start(supportedActions);
#      |            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/QDrag:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/appdrag.h:10: included_from: Included from here.
/usr/include/qt5/QtGui/qdrag.h:79:20: note: declared here
#   79 |     Qt::DropAction start(Qt::DropActions supportedActions = Qt::CopyAction);
#      |                    ^~~~~
#   43|   {
#   44|       m_appDragWidget->show();
#   45|->     return QDrag::start(supportedActions);
#   46|   }
#   47|   

Error: COMPILER_WARNING (CWE-477): [#def3]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/appsnapshot.cpp: scope_hint: In member function ‘void AppSnapshot::updateTitle()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/appsnapshot.cpp:103:29: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
#  103 |     int textWidth = fm.width(title()) + 10 + BTN_TITLE_MARGIN;
#      |                     ~~~~~~~~^~~~~~~~~
/usr/include/qt5/QtWidgets/qwidget.h:50: included_from: Included from here.
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
#  106 |     int width(const QString &, int len = -1) const;
#      |         ^~~~~
#  101|   
#  102|       QFontMetrics fm(m_3DtitleBtn->font());
#  103|->     int textWidth = fm.width(title()) + 10 + BTN_TITLE_MARGIN;
#  104|       int titleWidth = SNAP_WIDTH - (TITLE_MARGIN * 2  + BORDER_MARGIN);
#  105|   

Error: COMPILER_WARNING: [#def4]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/previewcontainer.cpp: scope_hint: In member function ‘virtual bool PreviewContainer::eventFilter(QObject*, QEvent*)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/previewcontainer.cpp:321:45: warning[-Wenum-compare]: comparison between ‘enum QBoxLayout::Direction’ and ‘enum Qt::LayoutDirection’
#  321 |         if (m_windowListLayout->direction() == Qt::LeftToRight) {
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
#  319|           QWheelEvent *wheelEvent = static_cast<QWheelEvent *>(event);
#  320|   
#  321|->         if (m_windowListLayout->direction() == Qt::LeftToRight) {
#  322|               const int delta = wheelEvent->delta();
#  323|               const int currValue = m_scrollArea->horizontalScrollBar()->value();

Error: COMPILER_WARNING (CWE-477): [#def5]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/previewcontainer.cpp:322:48: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  322 |             const int delta = wheelEvent->delta();
#      |                               ~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/QDragEnterEvent:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/previewcontainer.cpp:12: included_from: Included from here.
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  320|   
#  321|           if (m_windowListLayout->direction() == Qt::LeftToRight) {
#  322|->             const int delta = wheelEvent->delta();
#  323|               const int currValue = m_scrollArea->horizontalScrollBar()->value();
#  324|   

Error: COMPILER_WARNING: [#def6]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/previewcontainer.cpp:341:45: warning[-Wenum-compare]: comparison between ‘enum QBoxLayout::Direction’ and ‘enum Qt::LayoutDirection’
#  341 |         if (m_windowListLayout->direction() == Qt::LeftToRight) {
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
#  339|           QWheelEvent *wheelEvent = static_cast<QWheelEvent *>(event);
#  340|   
#  341|->         if (m_windowListLayout->direction() == Qt::LeftToRight) {
#  342|               const int delta = wheelEvent->delta();
#  343|               const int currValue = m_scrollArea->horizontalScrollBar()->value();

Error: COMPILER_WARNING (CWE-477): [#def7]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/previewcontainer.cpp:342:48: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  342 |             const int delta = wheelEvent->delta();
#      |                               ~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  340|   
#  341|           if (m_windowListLayout->direction() == Qt::LeftToRight) {
#  342|->             const int delta = wheelEvent->delta();
#  343|               const int currValue = m_scrollArea->horizontalScrollBar()->value();
#  344|   

Error: COMPILER_WARNING (CWE-477): [#def8]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/components/previewcontainer.cpp:355:48: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  355 |             const int delta = wheelEvent->delta();
#      |                               ~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  353|               return true;
#  354|           } else {
#  355|->             const int delta = wheelEvent->delta();
#  356|               const int currValue = m_scrollArea->verticalScrollBar()->value();
#  357|   

Error: COMPILER_WARNING (CWE-477): [#def9]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/pluginsitem.cpp: scope_hint: In member function ‘void PluginsItem::mouseClicked()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/pluginsitem.cpp:276:79: warning[-Wdeprecated-declarations]: ‘void QProcess::finished(int)’ is deprecated: Use QProcess::finished(int, QProcess::ExitStatus) instead
#  276 |         connect(proc, static_cast<void (QProcess::*)(int)>(&QProcess::finished), proc, &QProcess::deleteLater);
#      |                                                                               ^
/usr/include/qt5/QtCore/QtCore:170: included_from: Included from here.
/usr/include/qt5/QtCore/qprocess.h:297:10: note: declared here
#  297 |     void finished(int exitCode); // ### Qt 6: merge the two signals with a default value
#      |          ^~~~~~~~
#  274|           QProcess *proc = new QProcess(this);
#  275|   
#  276|->         connect(proc, static_cast<void (QProcess::*)(int)>(&QProcess::finished), proc, &QProcess::deleteLater);
#  277|   
#  278|           proc->startDetached(command);

Error: COMPILER_WARNING (CWE-477): [#def10]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/item/pluginsitem.cpp:278:28: warning[-Wdeprecated-declarations]: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead
#  278 |         proc->startDetached(command);
#      |         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/qt5/QtCore/qprocess.h:280:17: note: declared here
#  280 |     static bool startDetached(const QString &command);
#      |                 ^~~~~~~~~~~~~
#  276|           connect(proc, static_cast<void (QProcess::*)(int)>(&QProcess::finished), proc, &QProcess::deleteLater);
#  277|   
#  278|->         proc->startDetached(command);
#  279|           return;
#  280|       }

Error: COMPILER_WARNING (CWE-477): [#def11]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/util/pluginloader.cpp: scope_hint: In member function ‘QString PluginLoader::dtkCoreFileName()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/util/pluginloader.cpp:108:45: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(QChar, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(QChar sep, Qt::SplitBehavior ...) variant instead
#  108 |         const QStringList &maps = line.split(' ', QString::SplitBehavior::SkipEmptyParts);
#      |                                   ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:612:17: note: declared here
#  612 |     QStringList split(QChar sep, SplitBehavior behavior,
#      |                 ^~~~~
#  106|       while (Q_UNLIKELY(!ts.atEnd())) {
#  107|           const QString line = ts.readLine();
#  108|->         const QStringList &maps = line.split(' ', QString::SplitBehavior::SkipEmptyParts);
#  109|           if (Q_UNLIKELY(maps.size() < 6))
#  110|               continue;

Error: COMPILER_WARNING (CWE-477): [#def12]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/datetime/datetimeplugin.cpp:7: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/util/utils.h: scope_hint: In function ‘int Utils::comparePluginApi(const QString&, const QString&)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/util/utils.h:177:50: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QString&, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead
#  177 |     QStringList subPluginApis1 = pluginApi1.split(".", QString::SkipEmptyParts, Qt::CaseSensitive);
#      |                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qobject.h:47: included_from: Included from here.
/usr/include/qt5/QtCore/qabstractanimation.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/QtCore:6: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/constants.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/pluginproxyinterface.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/pluginsiteminterface.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/datetime/datetimeplugin.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/datetime/datetimeplugin.cpp:5: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:606:17: note: declared here
#  606 |     QStringList split(const QString &sep, SplitBehavior behavior,
#      |                 ^~~~~
#  175|   
#  176|       // 拆分版本号
#  177|->     QStringList subPluginApis1 = pluginApi1.split(".", QString::SkipEmptyParts, Qt::CaseSensitive);
#  178|       QStringList subPluginApis2 = pluginApi2.split(".", QString::SkipEmptyParts, Qt::CaseSensitive);
#  179|       for (int i = 0; i < subPluginApis1.size(); ++i) {

Error: COMPILER_WARNING (CWE-477): [#def13]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/util/utils.h:178:50: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QString&, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead
#  178 |     QStringList subPluginApis2 = pluginApi2.split(".", QString::SkipEmptyParts, Qt::CaseSensitive);
#      |                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:606:17: note: declared here
#  606 |     QStringList split(const QString &sep, SplitBehavior behavior,
#      |                 ^~~~~
#  176|       // 拆分版本号
#  177|       QStringList subPluginApis1 = pluginApi1.split(".", QString::SkipEmptyParts, Qt::CaseSensitive);
#  178|->     QStringList subPluginApis2 = pluginApi2.split(".", QString::SkipEmptyParts, Qt::CaseSensitive);
#  179|       for (int i = 0; i < subPluginApis1.size(); ++i) {
#  180|           auto subPluginApi1 = subPluginApis1[i];

Error: COMPILER_WARNING (CWE-477): [#def14]
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/window/components/desktop_widget.cpp: scope_hint: In member function ‘void DesktopWidget::toggleDesktop()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/window/components/desktop_widget.cpp:92:28: warning[-Wdeprecated-declarations]: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead
#   92 |     QProcess::startDetached("/usr/lib/deepin-daemon/desktop-toggle");
#      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/QProcess:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/frame/window/components/desktop_widget.cpp:10: included_from: Included from here.
/usr/include/qt5/QtCore/qprocess.h:280:17: note: declared here
#  280 |     static bool startDetached(const QString &command);
#      |                 ^~~~~~~~~~~~~
#   90|   void DesktopWidget::toggleDesktop()
#   91|   {
#   92|->     QProcess::startDetached("/usr/lib/deepin-daemon/desktop-toggle");
#   93|   }
#   94|   

Error: CLANG_WARNING: [#def15]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/bluetoothitem.cpp:62:12: warning[core.CallAndMessage]: Called C++ object pointer is null
#   60|       if (m_applet && m_applet->hasAadapter())
#   61|           m_applet->setAdapterRefresh();
#   62|->     return m_applet->hasAadapter() ? m_applet : nullptr;
#   63|   }
#   64|   

Error: COMPILER_WARNING (CWE-477): [#def16]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.cpp: scope_hint: In member function ‘void BluetoothDeviceItem::initConnect()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.cpp:83:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#   83 |     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothDeviceItem::updateIconTheme);
#      |                                 ^~~~~~~~
/usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.h:15: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.cpp:5: included_from: Included from here.
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#   81|   void BluetoothDeviceItem::initConnect()
#   82|   {
#   83|->     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothDeviceItem::updateIconTheme);
#   84|       connect(m_device, &Device::stateChanged, this, &BluetoothDeviceItem::updateDeviceState);
#   85|       connect(m_iconWidget, &QWidget::destroyed, [ this ] { this->m_iconWidget = nullptr; });

Error: COMPILER_WARNING (CWE-477): [#def17]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.cpp:83:66: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#   83 |     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothDeviceItem::updateIconTheme);
#      |                                                                  ^~~~~~~~~~~~~~~~
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#   81|   void BluetoothDeviceItem::initConnect()
#   82|   {
#   83|->     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothDeviceItem::updateIconTheme);
#   84|       connect(m_device, &Device::stateChanged, this, &BluetoothDeviceItem::updateDeviceState);
#   85|       connect(m_iconWidget, &QWidget::destroyed, [ this ] { this->m_iconWidget = nullptr; });

Error: CLANG_WARNING: [#def18]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.cpp:248:33: warning[core.CallAndMessage]: Called C++ object pointer is null
#  246|           return;
#  247|   
#  248|->     foreach (const auto device, m_adapter->devices()) {
#  249|           if (!m_deviceItems.contains(device->id()))
#  250|               onDeviceAdded(device);

Error: COMPILER_WARNING (CWE-477): [#def19]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.cpp: scope_hint: In member function ‘void BluetoothAdapterItem::initConnect()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.cpp:372:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#  372 |     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothAdapterItem::updateIconTheme);
#      |                                 ^~~~~~~~
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#  370|   void BluetoothAdapterItem::initConnect()
#  371|   {
#  372|->     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothAdapterItem::updateIconTheme);
#  373|       connect(m_adapter, &Adapter::deviceAdded, this, &BluetoothAdapterItem::onDeviceAdded);
#  374|       connect(m_adapter, &Adapter::deviceRemoved, this, &BluetoothAdapterItem::onDeviceRemoved);

Error: COMPILER_WARNING (CWE-477): [#def20]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.cpp:372:66: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#  372 |     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothAdapterItem::updateIconTheme);
#      |                                                                  ^~~~~~~~~~~~~~~~
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#  370|   void BluetoothAdapterItem::initConnect()
#  371|   {
#  372|->     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothAdapterItem::updateIconTheme);
#  373|       connect(m_adapter, &Adapter::deviceAdded, this, &BluetoothAdapterItem::onDeviceAdded);
#  374|       connect(m_adapter, &Adapter::deviceRemoved, this, &BluetoothAdapterItem::onDeviceRemoved);

Error: COMPILER_WARNING (CWE-477): [#def21]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothapplet.cpp: scope_hint: In member function ‘virtual void SettingLabel::paintEvent(QPaintEvent*)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothapplet.cpp:68:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#   68 |     if (DApplicationHelper::instance()->themeType() == DApplicationHelper::LightType) {
#      |                             ^~~~~~~~
/usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothadapteritem.h:15: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothapplet.cpp:10: included_from: Included from here.
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#   66|       QPainter painter(this);
#   67|       painter.setPen(Qt::NoPen);
#   68|->     if (DApplicationHelper::instance()->themeType() == DApplicationHelper::LightType) {
#   69|           painter.setBrush(QColor(0, 0, 0, 0.03 * 255));
#   70|       } else {

Error: COMPILER_WARNING (CWE-477): [#def22]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothapplet.cpp:68:76: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#   68 |     if (DApplicationHelper::instance()->themeType() == DApplicationHelper::LightType) {
#      |                                                                            ^~~~~~~~~
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#   66|       QPainter painter(this);
#   67|       painter.setPen(Qt::NoPen);
#   68|->     if (DApplicationHelper::instance()->themeType() == DApplicationHelper::LightType) {
#   69|           painter.setBrush(QColor(0, 0, 0, 0.03 * 255));
#   70|       } else {

Error: COMPILER_WARNING (CWE-477): [#def23]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothapplet.cpp: scope_hint: In member function ‘void BluetoothApplet::initConnect()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothapplet.cpp:252:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#  252 |     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothApplet::updateIconTheme);
#      |                                 ^~~~~~~~
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#  250|           .call();
#  251|       });
#  252|->     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothApplet::updateIconTheme);
#  253|       connect(m_airPlaneModeInter, &DBusAirplaneMode::EnabledChanged, this, &BluetoothApplet::setAirplaneModeEnabled);
#  254|       connect(m_airPlaneModeInter, &DBusAirplaneMode::EnabledChanged, this, [this](bool enabled) {

Error: COMPILER_WARNING (CWE-477): [#def24]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/bluetooth/componments/bluetoothapplet.cpp:252:66: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#  252 |     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothApplet::updateIconTheme);
#      |                                                                  ^~~~~~~~~~~~~~~~
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#  250|           .call();
#  251|       });
#  252|->     connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &BluetoothApplet::updateIconTheme);
#  253|       connect(m_airPlaneModeInter, &DBusAirplaneMode::EnabledChanged, this, &BluetoothApplet::setAirplaneModeEnabled);
#  254|       connect(m_airPlaneModeInter, &DBusAirplaneMode::EnabledChanged, this, [this](bool enabled) {

Error: COMPILER_WARNING (CWE-665): [#def25]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/keyboard-layout/dbusadaptors.cpp:25:1: warning[-Wreorder]:   when initialized here
#   25 | DBusAdaptors::DBusAdaptors(QObject *parent)
#      | ^~~~~~~~~~~~
#   23|   const QString FCITX_ADDRESSS = "org.fcitx.Fcitx";
#   24|   
#   25|-> DBusAdaptors::DBusAdaptors(QObject *parent)
#   26|       : QDBusAbstractAdaptor(parent),
#   27|         m_keyboard(new Keyboard("com.deepin.daemon.InputDevices",

Error: COMPILER_WARNING (CWE-665): [#def26]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/keyboard-layout/dbusadaptors.h:72:10: warning[-Wreorder]:   ‘bool DBusAdaptors::m_fcitxRunning’
#   72 |     bool m_fcitxRunning;
#      |          ^~~~~~~~~~~~~~
#   70|   private:
#   71|       Keyboard *m_keyboard;
#   72|->     bool m_fcitxRunning;
#   73|       FcitxInputMethodProxy *m_inputmethod;
#   74|       QDBusServiceWatcher *m_fcitxWatcher;

Error: COMPILER_WARNING (CWE-665): [#def27]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/keyboard-layout/dbusadaptors.h:75:17: warning[-Wreorder]:   ‘QGSettings* DBusAdaptors::m_keybingEnabled’
#   75 |     QGSettings *m_keybingEnabled;
#      |                 ^~~~~~~~~~~~~~~~
#   73|       FcitxInputMethodProxy *m_inputmethod;
#   74|       QDBusServiceWatcher *m_fcitxWatcher;
#   75|->     QGSettings *m_keybingEnabled;
#   76|       QGSettings *m_dccSettings;
#   77|       QMenu *m_menu;

Error: COMPILER_WARNING (CWE-665): [#def28]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/keyboard-layout/dbusadaptors.h:76:17: warning[-Wreorder]: ‘DBusAdaptors::m_dccSettings’ will be initialized after
#   76 |     QGSettings *m_dccSettings;
#      |                 ^~~~~~~~~~~~~
#   74|       QDBusServiceWatcher *m_fcitxWatcher;
#   75|       QGSettings *m_keybingEnabled;
#   76|->     QGSettings *m_dccSettings;
#   77|       QMenu *m_menu;
#   78|       QAction *m_addLayoutAction;

Error: COMPILER_WARNING (CWE-665): [#def29]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/keyboard-layout/dbusadaptors.cpp:6: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/keyboard-layout/dbusadaptors.h: scope_hint: In constructor ‘DBusAdaptors::DBusAdaptors(QObject*)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/keyboard-layout/dbusadaptors.h:84:23: warning[-Wreorder]: ‘DBusAdaptors::m_gsettings’ will be initialized after
#   84 |     const QGSettings *m_gsettings;
#      |                       ^~~~~~~~~~~
#   82|       QStringList m_userLayoutList;
#   83|       KeyboardLayoutList m_allLayoutList;
#   84|->     const QGSettings *m_gsettings;
#   85|   };
#   86|   

Error: COMPILER_WARNING (CWE-477): [#def30]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/onboard/onboardplugin.cpp: scope_hint: In member function ‘virtual void OnboardPlugin::invokedMenuItem(const QString&, const QString&, bool)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/onboard/onboardplugin.cpp:122:23: warning[-Wdeprecated-declarations]: ‘void QProcess::start(const QString&, QIODevice::OpenMode)’ is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead
#  122 |         process->start("onboard-settings");
#      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/QtCore:170: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/constants.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/pluginproxyinterface.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/pluginsiteminterface.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/onboard/onboardplugin.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/onboard/onboardplugin.cpp:5: included_from: Included from here.
/usr/include/qt5/QtCore/qprocess.h:168:10: note: declared here
#  168 |     void start(const QString &command, OpenMode mode = ReadWrite);
#      |          ^~~~~
#  120|               process->deleteLater();
#  121|           });
#  122|->         process->start("onboard-settings");
#  123|       }
#  124|   

Error: COMPILER_WARNING (CWE-477): [#def31]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/overlay-warning/overlay-warning-plugin.cpp: scope_hint: In member function ‘void OverlayWarningPlugin::showCloseOverlayDialog()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/overlay-warning/overlay-warning-plugin.cpp:177:41: warning[-Wdeprecated-declarations]: ‘static int QProcess::execute(const QString&)’ is deprecated: Use QProcess::execute(const QString &program, const QStringList &arguments) instead
#  177 |     const int result = QProcess::execute("/usr/bin/pkexec /usr/sbin/overlayroot-disable");
#      |                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/QtCore:170: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/constants.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/pluginproxyinterface.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/pluginsiteminterface.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/overlay-warning/overlay-warning-plugin.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/overlay-warning/overlay-warning-plugin.cpp:5: included_from: Included from here.
/usr/include/qt5/QtCore/qprocess.h:265:16: note: declared here
#  265 |     static int execute(const QString &command);
#      |                ^~~~~~~
#  175|   {
#  176|       qDebug() << "start disable overlayroot process";
#  177|->     const int result = QProcess::execute("/usr/bin/pkexec /usr/sbin/overlayroot-disable");
#  178|       if (result == 0) {
#  179|           QProcess::startDetached("reboot");

Error: COMPILER_WARNING (CWE-477): [#def32]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/overlay-warning/overlay-warning-plugin.cpp:179:32: warning[-Wdeprecated-declarations]: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead
#  179 |         QProcess::startDetached("reboot");
#      |         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/qt5/QtCore/qprocess.h:280:17: note: declared here
#  280 |     static bool startDetached(const QString &command);
#      |                 ^~~~~~~~~~~~~
#  177|       const int result = QProcess::execute("/usr/bin/pkexec /usr/sbin/overlayroot-disable");
#  178|       if (result == 0) {
#  179|->         QProcess::startDetached("reboot");
#  180|       } else {
#  181|           qDebug() << "disable overlayroot failed, the return code is" << result;

Error: COMPILER_WARNING (CWE-477): [#def33]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/show-desktop/showdesktopplugin.cpp: scope_hint: In member function ‘virtual const QString ShowDesktopPlugin::itemCommand(const QString&)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/show-desktop/showdesktopplugin.cpp:73:32: warning[-Wdeprecated-declarations]: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead
#   73 |         QProcess::startDetached("/usr/lib/deepin-daemon/desktop-toggle");
#      |         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/QtCore:170: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/constants.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/pluginproxyinterface.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/pluginsiteminterface.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/show-desktop/showdesktopplugin.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/show-desktop/showdesktopplugin.cpp:5: included_from: Included from here.
/usr/include/qt5/QtCore/qprocess.h:280:17: note: declared here
#  280 |     static bool startDetached(const QString &command);
#      |                 ^~~~~~~~~~~~~
#   71|   {
#   72|       if (itemKey == pluginName())
#   73|->         QProcess::startDetached("/usr/lib/deepin-daemon/desktop-toggle");
#   74|   
#   75|       return QString();

Error: COMPILER_WARNING (CWE-477): [#def34]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/show-desktop/showdesktopplugin.cpp: scope_hint: In member function ‘virtual void ShowDesktopPlugin::invokedMenuItem(const QString&, const QString&, bool)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/show-desktop/showdesktopplugin.cpp:113:32: warning[-Wdeprecated-declarations]: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead
#  113 |         QProcess::startDetached("/usr/lib/deepin-daemon/desktop-toggle");
#      |         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qprocess.h:280:17: note: declared here
#  280 |     static bool startDetached(const QString &command);
#      |                 ^~~~~~~~~~~~~
#  111|   
#  112|       if (menuId == "show-desktop") {
#  113|->         QProcess::startDetached("/usr/lib/deepin-daemon/desktop-toggle");
#  114|       } else if (menuId == "remove") {
#  115|           pluginStateSwitched();

Error: COMPILER_WARNING (CWE-477): [#def35]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/componments/volumeslider.cpp: scope_hint: In member function ‘virtual void VolumeSlider::wheelEvent(QWheelEvent*)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/componments/volumeslider.cpp:70:42: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#   70 |     DSlider::setValue(value() + (e->delta() > 0 ? 2 : -2));
#      |                                  ~~~~~~~~^~
/usr/include/qt5/QtGui/QMouseEvent:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/componments/volumeslider.cpp:7: included_from: Included from here.
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#   68|       m_timer->start();
#   69|   
#   70|->     DSlider::setValue(value() + (e->delta() > 0 ? 2 : -2));
#   71|   }
#   72|   

Error: COMPILER_WARNING (CWE-477): [#def36]
deepin-dock-5.5.81-build/dde-dock-5.5.81/redhat-linux-build/plugins/sound/sound_autogen/EWIEGA46WW/moc_soundapplet.cpp:10: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/redhat-linux-build/plugins/sound/sound_autogen/mocs_compilation.cpp:4: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/soundapplet.h: scope_hint: In member function ‘virtual void BackgroundWidget::paintEvent(QPaintEvent*)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/soundapplet.h:92:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#   92 |         if (DApplicationHelper::instance()->themeType() == DApplicationHelper::LightType) {
#      |                                 ^~~~~~~~
/usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/soundapplet.h:15: included_from: Included from here.
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#   90|           QPainter painter(this);
#   91|           painter.setPen(Qt::NoPen);
#   92|->         if (DApplicationHelper::instance()->themeType() == DApplicationHelper::LightType) {
#   93|               painter.setBrush(QColor(0, 0, 0, 0.03 * 255));
#   94|           } else {

Error: COMPILER_WARNING (CWE-477): [#def37]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/soundapplet.h:92:80: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
#   92 |         if (DApplicationHelper::instance()->themeType() == DApplicationHelper::LightType) {
#      |                                                                                ^~~~~~~~~
/usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here
#   15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper
#      |                                                 ^~~~~~~~~~~~~~~~~~
#   90|           QPainter painter(this);
#   91|           painter.setPen(Qt::NoPen);
#   92|->         if (DApplicationHelper::instance()->themeType() == DApplicationHelper::LightType) {
#   93|               painter.setBrush(QColor(0, 0, 0, 0.03 * 255));
#   94|           } else {

Error: COMPILER_WARNING (CWE-477): [#def38]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/sounditem.cpp: scope_hint: In member function ‘virtual void SoundItem::wheelEvent(QWheelEvent*)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/sounditem.cpp:141:48: warning[-Wdeprecated-declarations]: ‘QPoint QWheelEvent::pos() const’ is deprecated: Use position()
#  141 |     QWheelEvent *event = new QWheelEvent(e->pos(), e->delta(), e->buttons(), e->modifiers());
#      |                                          ~~~~~~^~
/usr/include/qt5/QtGui/QMouseEvent:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/sounditem.cpp:17: included_from: Included from here.
/usr/include/qt5/QtGui/qevent.h:225:19: note: declared here
#  225 |     inline QPoint pos() const { return p.toPoint(); }
#      |                   ^~~
#  139|   void SoundItem::wheelEvent(QWheelEvent *e)
#  140|   {
#  141|->     QWheelEvent *event = new QWheelEvent(e->pos(), e->delta(), e->buttons(), e->modifiers());
#  142|       qApp->postEvent(m_applet->mainSlider(), event);
#  143|   

Error: COMPILER_WARNING (CWE-477): [#def39]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/sounditem.cpp:141:60: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  141 |     QWheelEvent *event = new QWheelEvent(e->pos(), e->delta(), e->buttons(), e->modifiers());
#      |                                                    ~~~~~~~~^~
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  139|   void SoundItem::wheelEvent(QWheelEvent *e)
#  140|   {
#  141|->     QWheelEvent *event = new QWheelEvent(e->pos(), e->delta(), e->buttons(), e->modifiers());
#  142|       qApp->postEvent(m_applet->mainSlider(), event);
#  143|   

Error: COMPILER_WARNING (CWE-477): [#def40]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/sounditem.cpp:141:92: warning[-Wdeprecated-declarations]: ‘QWheelEvent::QWheelEvent(const QPointF&, int, Qt::MouseButtons, Qt::KeyboardModifiers, Qt::Orientation)’ is deprecated: Use the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and inverted
#  141 |     QWheelEvent *event = new QWheelEvent(e->pos(), e->delta(), e->buttons(), e->modifiers());
#      |                                                                                            ^
/usr/include/qt5/QtGui/qevent.h:181:5: note: declared here
#  181 |     QWheelEvent(const QPointF &pos, int delta,
#      |     ^~~~~~~~~~~
#  139|   void SoundItem::wheelEvent(QWheelEvent *e)
#  140|   {
#  141|->     QWheelEvent *event = new QWheelEvent(e->pos(), e->delta(), e->buttons(), e->modifiers());
#  142|       qApp->postEvent(m_applet->mainSlider(), event);
#  143|   

Error: CLANG_WARNING: [#def41]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/sound/sounditem.cpp:219:13: warning[core.CallAndMessage]: Called C++ object pointer is null
#  217|           m_tipsLabel->setText(QString(tr("No output devices")));
#  218|       } else {
#  219|->         if (m_sinkInter->mute()) {
#  220|               m_tipsLabel->setText(QString(tr("Mute")));
#  221|           } else {

Error: COMPILER_WARNING (CWE-477): [#def42]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/trash/trashwidget.cpp: scope_hint: In member function ‘void TrashWidget::removeApp(const QString&)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/trash/trashwidget.cpp:224:16: warning[-Wdeprecated-declarations]: ‘void QProcess::start(const QString&, QIODevice::OpenMode)’ is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead
#  224 |     proc->start(cmd);
#      |     ~~~~~~~~~~~^~~~~
/usr/include/qt5/QtCore/QtCore:170: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/interfaces/constants.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/trash/trashwidget.cpp:5: included_from: Included from here.
/usr/include/qt5/QtCore/qprocess.h:168:10: note: declared here
#  168 |     void start(const QString &command, OpenMode mode = ReadWrite);
#      |          ^~~~~
#  222|   
#  223|       QProcess *proc = new QProcess;
#  224|->     proc->start(cmd);
#  225|       proc->waitForFinished();
#  226|   

Error: COMPILER_WARNING (CWE-477): [#def43]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/tray/system-trays/systemtrayitem.cpp: scope_hint: In member function ‘virtual void SystemTrayItem::mouseReleaseEvent(QMouseEvent*)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/tray/system-trays/systemtrayitem.cpp:233:32: warning[-Wdeprecated-declarations]: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead
#  233 |         QProcess::startDetached(trayClickCommand());
#      |         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/QtCore:170: included_from: Included from here.
/usr/include/qt5/QtCore/qprocess.h:280:17: note: declared here
#  280 |     static bool startDetached(const QString &command);
#      |                 ^~~~~~~~~~~~~
#  231|   
#  232|       if (!trayClickCommand().isEmpty()) {
#  233|->         QProcess::startDetached(trayClickCommand());
#  234|       }
#  235|   

Error: CLANG_WARNING: [#def44]
deepin-dock-5.5.81-build/dde-dock-5.5.81/plugins/tray/trayplugin.cpp:409:48: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'trayWidget'
#  407|           addTrayWidget(itemKey, trayWidget);
#  408|       else {
#  409|->         qDebug() << "-- invalid tray windowid" << winId;
#  410|       }
#  411|   }

Error: COMPILER_WARNING (CWE-477): [#def45]
deepin-dock-5.5.81-build/dde-dock-5.5.81/tests/item/ut_appitem.cpp: scope_hint: In member function ‘virtual void Test_AppItem_QWheelEvent_Test::TestBody()’
deepin-dock-5.5.81-build/dde-dock-5.5.81/tests/item/ut_appitem.cpp:127:80: warning[-Wdeprecated-declarations]: ‘QWheelEvent::QWheelEvent(const QPointF&, int, Qt::MouseButtons, Qt::KeyboardModifiers, Qt::Orientation)’ is deprecated: Use the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and inverted
#  127 |     QWheelEvent event(QPointF(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
#      |                                                                                ^
/usr/include/qt5/QtTest/qtestkeyboard.h:56: included_from: Included from here.
/usr/include/qt5/QtTest/qtestevent.h:50: included_from: Included from here.
/usr/include/qt5/QtTest/qtest_gui.h:53: included_from: Included from here.
/usr/include/qt5/QtTest/qtest_widgets.h:51: included_from: Included from here.
/usr/include/qt5/QtTest/qtest.h:462: included_from: Included from here.
/usr/include/qt5/QtTest/QTest:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/tests/item/ut_appitem.cpp:7: included_from: Included from here.
/usr/include/qt5/QtGui/qevent.h:181:5: note: declared here
#  181 |     QWheelEvent(const QPointF &pos, int delta,
#      |     ^~~~~~~~~~~
#  125|   TEST_F(Test_AppItem, QWheelEvent)
#  126|   {
#  127|->     QWheelEvent event(QPointF(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
#  128|       appItem->wheelEvent(&event);
#  129|   

Error: CLANG_WARNING: [#def46]
deepin-dock-5.5.81-build/dde-dock-5.5.81/tests/util/ut_menuworker.cpp:36:4: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'worker'
#   34|      MenuWorker *worker = new MenuWorker(new DBusDock("com.deepin.dde.daemon.Dock", "/com/deepin/dde/daemon/Dock", QDBusConnection::sessionBus()));
#   35|   
#   36|->    ASSERT_TRUE(worker->m_autoHide);
#   37|      worker->setAutoHide(false);
#   38|   

Error: CLANG_WARNING: [#def47]
deepin-dock-5.5.81-build/dde-dock-5.5.81/tests/window/ut_mainwindow.cpp:217:5: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'window'
#  215|       worker->onExtralRegionMonitorChanged(0, 0, worker->m_registerKey);
#  216|   
#  217|->     ASSERT_TRUE(true);
#  218|       delete window;
#  219|   }

Error: COMPILER_WARNING (CWE-477): [#def48]
deepin-dock-5.5.81-build/dde-dock-5.5.81/widgets/tipswidget.cpp: scope_hint: In member function ‘void Dock::TipsWidget::setText(const QString&)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/widgets/tipswidget.cpp:35:37: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
#   35 |     setFixedSize(fontMetrics().width(m_text) + 20, fontMetrics().boundingRect(m_text).height() + PADDING);
#      |                  ~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/qt5/QtWidgets/qwidget.h:50: included_from: Included from here.
/usr/include/qt5/QtWidgets/qframe.h:44: included_from: Included from here.
/usr/include/qt5/QtWidgets/QFrame:1: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/widgets/tipswidget.h:8: included_from: Included from here.
deepin-dock-5.5.81-build/dde-dock-5.5.81/widgets/tipswidget.cpp:5: included_from: Included from here.
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
#  106 |     int width(const QString &, int len = -1) const;
#      |         ^~~~~
#   33|   #endif
#   34|   
#   35|->     setFixedSize(fontMetrics().width(m_text) + 20, fontMetrics().boundingRect(m_text).height() + PADDING);
#   36|   
#   37|       update();

Error: COMPILER_WARNING (CWE-477): [#def49]
deepin-dock-5.5.81-build/dde-dock-5.5.81/widgets/tipswidget.cpp: scope_hint: In member function ‘void Dock::TipsWidget::setTextList(const QStringList&)’
deepin-dock-5.5.81-build/dde-dock-5.5.81/widgets/tipswidget.cpp:55:48: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
#   55 |         width = qMax(width, fontMetrics().width(text));
#      |                             ~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
#  106 |     int width(const QString &, int len = -1) const;
#      |         ^~~~~
#   53|       int height = 0;
#   54|       for (QString text : m_textList) {
#   55|->         width = qMax(width, fontMetrics().width(text));
#   56|           height += fontMetrics().boundingRect(text).height();
#   57|       }

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-232.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namedeepin-dock-5.5.81-4.fc41
store-results-to/tmp/tmp0cffnykv/deepin-dock-5.5.81-4.fc41.tar.xz
time-created2024-07-03 12:21:53
time-finished2024-07-03 12:27:36
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp0cffnykv/deepin-dock-5.5.81-4.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp0cffnykv/deepin-dock-5.5.81-4.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9