deepin-qt5integration-5.6.11-7.fc41
List of Defects
Error: COMPILER_WARNING (CWE-477): [#def1]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/3rdparty/qdbustrayicon.cpp: scope_hint: In function ‘QString thirdparty::generateServiceName()’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/3rdparty/qdbustrayicon.cpp:63:43: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(QChar, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(QChar sep, Qt::SplitBehavior ...) variant instead
# 63 | const QStringList parts = domain.split(QLatin1Char('.'), QString::SkipEmptyParts);
# | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/QString:1: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/3rdparty/qdbusmenuconnection_p.h:18: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/3rdparty/qdbustrayicon_p.h:18: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/3rdparty/qdbustrayicon.cpp:4: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:612:17: note: declared here
# 612 | QStringList split(QChar sep, SplitBehavior behavior,
# | ^~~~~
# 61| const QCoreApplication *app = QCoreApplication::instance();
# 62| const QString domain = app->organizationDomain();
# 63|-> const QStringList parts = domain.split(QLatin1Char('.'), QString::SkipEmptyParts);
# 64|
# 65| QString reversedDomain;
Error: COMPILER_WARNING (CWE-477): [#def2]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/iconengineplugins/builtinengine/dbuiltiniconengine.cpp: scope_hint: In member function ‘virtual QPixmap ImageEntry::pixmap(const QSize&, QIcon::Mode, QIcon::State)’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/iconengineplugins/builtinengine/dbuiltiniconengine.cpp:59:31: warning[-Wdeprecated-declarations]: ‘static bool QPixmapCache::find(const QString&, QPixmap&)’ is deprecated: Use bool find(const QString &, QPixmap *) instead
# 59 | if (QPixmapCache::find(pmckey, pm)) {
# | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/qt5/QtGui/QPixmapCache:1: included_from: Included from here.
/usr/include/qt5/QtGui/5.15.14/QtGui/private/qiconloader_p.h:59: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/iconengineplugins/builtinengine/dbuiltiniconengine.h:9: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/iconengineplugins/builtinengine/dbuiltiniconengine.cpp:5: included_from: Included from here.
/usr/include/qt5/QtGui/qpixmapcache.h:81:17: note: declared here
# 81 | static bool find(const QString &key, QPixmap &pixmap);
# | ^~~~
# 57| QPixmap pm;
# 58| QString pmckey(pmcKey(size, mode, state));
# 59|-> if (QPixmapCache::find(pmckey, pm)) {
# 60| genIconTypeIcon(pm, mode);
# 61| return pm;
Error: COMPILER_WARNING (CWE-477): [#def3]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/imageformatplugins/svg/main.cpp: scope_hint: In member function ‘virtual QImageIOPlugin::Capabilities QSvgPlugin::capabilities(QIODevice*, const QByteArray&) const’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/imageformatplugins/svg/main.cpp:37:16: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QImageIOPlugin::Capability; Zero = int QFlags<QImageIOPlugin::Capability>::Private::*]’ is deprecated: Use default constructor instead
# 37 | return 0;
# | ^
/usr/include/qt5/QtCore/qglobal.h:1307: included_from: Included from here.
/usr/include/qt5/QtGui/qtguiglobal.h:43: included_from: Included from here.
/usr/include/qt5/QtGui/qimageiohandler.h:43: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/imageformatplugins/svg/main.cpp:3: included_from: Included from here.
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
# 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
# | ^~~~~~
# 35| return Capabilities(CanRead);
# 36| if (!format.isEmpty())
# 37|-> return 0;
# 38|
# 39| Capabilities cap;
Error: COMPILER_WARNING (CWE-477): [#def4]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/platformthemeplugin/qdeepinfiledialoghelper.cpp:6: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/platformthemeplugin/qdeepintheme.h:28:62: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QPlatformTheme::IconOption; Zero = int QFlags<QPlatformTheme::IconOption>::Private::*]’ is deprecated: Use default constructor instead
# 28 | QPlatformTheme::IconOptions iconOptions = 0) const Q_DECL_OVERRIDE;
# | ^
/usr/include/qt5/QtCore/qglobal.h:1307: included_from: Included from here.
/usr/include/qt5/QtGui/qtguiglobal.h:43: included_from: Included from here.
/usr/include/qt5/QtGui/5.15.14/QtGui/qpa/qplatformdialoghelper.h:52: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/platformthemeplugin/qdeepinfiledialoghelper.h:8: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/platformthemeplugin/qdeepinfiledialoghelper.cpp:5: included_from: Included from here.
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
# 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
# | ^~~~~~
# 26| #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
# 27| QIcon fileIcon(const QFileInfo &fileInfo,
# 28|-> QPlatformTheme::IconOptions iconOptions = 0) const Q_DECL_OVERRIDE;
# 29| #else
# 30| QPixmap fileIconPixmap(const QFileInfo &fileInfo, const QSizeF &size,
Error: CLANG_WARNING: [#def5]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:171:86: warning[core.CallAndMessage]: Called C++ object pointer is null
# 169|
# 170| //设计要求DDateTimeEdit focus只绘制边缘
# 171|-> if (qobject_cast<const QLineEdit*>(w) && qobject_cast<const DDateTimeEdit *>(w->parentWidget())) {
# 172| return;
# 173| }
Error: COMPILER_WARNING (CWE-569): [#def6]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘virtual bool chameleon::ChameleonStyle::eventFilter(QObject*, QEvent*)’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:741:20: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 741 | if (target = pp->childAt(viewportPos)) {
# | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
# 739| QPoint localPos = viewportPos;
# 740| if (qobject_cast<QScrollArea *>(itemView)) {
# 741|-> if (target = pp->childAt(viewportPos)) {
# 742| localPos = target->mapFrom(pp, viewportPos);
# 743| }
Error: COMPILER_WARNING (CWE-477): [#def7]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘virtual void chameleon::ChameleonStyle::drawControl(QStyle::ControlElement, const QStyleOption*, QPainter*, const QWidget*) const’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:1619:68: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 1619 | int textWidget = w->fontMetrics().width(toolbutton->text);
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qpainter.h:59: included_from: Included from here.
/usr/include/qt5/QtGui/QPainter:1: included_from: Included from here.
/usr/include/dtk5/DWidget/dstyle.h:13: included_from: Included from here.
/usr/include/dtk5/DWidget/DStyle:1: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.h:8: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.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;
# | ^~~~~
# 1617| if (toolButtonAlign == Qt::AlignCenter) { //toolButton居中对齐
# 1618| //计算文字宽度
# 1619|-> int textWidget = w->fontMetrics().width(toolbutton->text);
# 1620| //图标 spacing 文字的矩形
# 1621| QRect textIcon = QRect(0, 0, pr.width() + ToolButton_MarginWidth + textWidget, rect.height());
Error: COMPILER_WARNING (CWE-477): [#def8]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:1632:68: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 1632 | int textWidget = w->fontMetrics().width(toolbutton->text);
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
# 106 | int width(const QString &, int len = -1) const;
# | ^~~~~
# 1630| alignment |= Qt::AlignCenter;
# 1631| } else if (toolButtonAlign == Qt::AlignRight) { //toolButton右对齐
# 1632|-> int textWidget = w->fontMetrics().width(toolbutton->text);
# 1633| pr.moveCenter(rect.center());
# 1634| pr.moveRight(tr.width() - textWidget - ToolButton_AlignLeftPadding - ToolButton_ItemSpacing);
Error: CLANG_WARNING: [#def9]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:1927:9: warning[deadcode.DeadStores]: Value stored to 'x1' is never read
# 1925| rect = QRect(tmp.y(), tmp.x(), tmp.height(), tmp.width());
# 1926| int temp = x1;
# 1927|-> x1 = y1;
# 1928| y1 = temp;
# 1929| temp = x2;
Error: CLANG_WARNING: [#def10]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:1928:9: warning[deadcode.DeadStores]: Value stored to 'y1' is never read
# 1926| int temp = x1;
# 1927| x1 = y1;
# 1928|-> y1 = temp;
# 1929| temp = x2;
# 1930| x2 = y2;
Error: CLANG_WARNING: [#def11]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:1930:9: warning[deadcode.DeadStores]: Value stored to 'x2' is never read
# 1928| y1 = temp;
# 1929| temp = x2;
# 1930|-> x2 = y2;
# 1931| y2 = temp;
# 1932| }
Error: CLANG_WARNING: [#def12]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:1931:9: warning[deadcode.DeadStores]: Value stored to 'y2' is never read
# 1929| temp = x2;
# 1930| x2 = y2;
# 1931|-> y2 = temp;
# 1932| }
# 1933|
Error: CLANG_WARNING: [#def13]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:2225:9: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2223|
# 2224| // 绘制背景,选中的item圆角由属性来控制
# 2225|-> if (w->property("_d_dtk_enable_tableviewitem_radius").toBool()) {
# 2226| p->setRenderHint(QPainter::Antialiasing);
# 2227| p->drawRoundedRect(select_rect, frame_radius, frame_radius);
Error: COMPILER_WARNING (CWE-477): [#def14]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘void chameleon::ChameleonStyle::drawMenuItemBackground(const QStyleOption*, QPainter*, QStyleOptionMenuItem::MenuItemType) const’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:2780:43: warning[-Wdeprecated-declarations]: ‘const QBrush& QPalette::background() const’ is deprecated: Use QPalette::window() instead
# 2780 | color = option->palette.background().color();
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/QPalette:1: included_from: Included from here.
/usr/include/dtk5/DGui/dpalette.h:11: included_from: Included from here.
/usr/include/dtk5/DGui/DPalette:1: included_from: Included from here.
/usr/include/dtk5/DWidget/dstyle.h:9: included_from: Included from here.
/usr/include/qt5/QtGui/qpalette.h:149:26: note: declared here
# 149 | inline const QBrush &background() const { return window(); }
# | ^~~~~~~~~~
# 2778| painter->fillRect(option->rect, color);
# 2779| } else {
# 2780|-> color = option->palette.background().color();
# 2781|
# 2782| if (color.color().isValid()) {
Error: CLANG_WARNING: [#def15]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:3063:13: warning[deadcode.DeadStores]: Value stored to 'xpos' is never read
# 3061| int xpos = menuRect.left() + menuRect.width() - 3 - dim;
# 3062| QStyleOptionMenuItem newMI = *menuItem;
# 3063|-> xpos += realMargins + iconSize.width() + frameRadius;
# 3064| QPoint topLeft(menuItem->rect.right() - frameRadius - smallIconSize / 2, menuItem->rect.center().y() - smallIconSize / 3); //箭头rect: Size(smallIconSize, smallIconSize*2/3)
# 3065| QPoint RightButtom(topLeft.x() + smallIconSize / 2, menuItem->rect.center().y() + smallIconSize / 3 );
Error: COMPILER_WARNING (CWE-477): [#def16]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘bool chameleon::ChameleonStyle::drawMenuItem(const QStyleOptionMenuItem*, QPainter*, const QWidget*) const’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:3071:50: warning[-Wdeprecated-declarations]: ‘QPalette::Foreground’ is deprecated: Use QPalette::WindowText instead
# 3071 | newMI.palette.setColor(QPalette::Foreground,
# | ^~~~~~~~~~
/usr/include/qt5/QtGui/qpalette.h:100:22: note: declared here
# 100 | Foreground Q_DECL_ENUMERATOR_DEPRECATED_X("Use QPalette::WindowText instead") = WindowText,
# | ^~~~~~~~~~
# 3069| newMI.state = !enabled ? State_None : State_Enabled;
# 3070| if (selected)
# 3071|-> newMI.palette.setColor(QPalette::Foreground,
# 3072| newMI.palette.highlightedText().color());
# 3073|
Error: COMPILER_WARNING (CWE-477): [#def17]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘virtual QRect chameleon::ChameleonStyle::subElementRect(QStyle::SubElement, const QStyleOption*, const QWidget*) const’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:3167:65: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 3167 | re.setWidth(re.width() + widget->fontMetrics().width(btn->text) + spacing * 2);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
# 106 | int width(const QString &, int len = -1) const;
# | ^~~~~
# 3165| if (const QStyleOptionButton *btn = qstyleoption_cast<const QStyleOptionButton *>(opt)) {
# 3166| int spacing = proxy()->pixelMetric(PM_CheckBoxLabelSpacing, opt, widget);
# 3167|-> re.setWidth(re.width() + widget->fontMetrics().width(btn->text) + spacing * 2);
# 3168| }
# 3169| return re;
Error: COMPILER_WARNING (CWE-477): [#def18]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘virtual void chameleon::ChameleonStyle::drawComplexControl(QStyle::ComplexControl, const QStyleOptionComplex*, QPainter*, const QWidget*) const’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:3413:50: warning[-Wdeprecated-declarations]: ‘const QBrush& QPalette::foreground() const’ is deprecated: Use QPalette::windowText() instead
# 3413 | p->setPen(opt->palette.foreground().color());
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qpalette.h:147:26: note: declared here
# 147 | inline const QBrush &foreground() const { return windowText(); }
# | ^~~~~~~~~~
# 3411| //绘画 刻度,绘画方式了参考qfusionstyle.cpp
# 3412| if ((opt->subControls & SC_SliderTickmarks) && slider->tickInterval) { //需要绘画刻度
# 3413|-> p->setPen(opt->palette.foreground().color());
# 3414| int available = proxy()->pixelMetric(PM_SliderSpaceAvailable, slider, w); //可用空间
# 3415| int interval = slider->tickInterval; //标记间隔
Error: COMPILER_WARNING (CWE-477): [#def19]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘virtual QSize chameleon::ChameleonStyle::sizeFromContents(QStyle::ContentsType, const QStyleOption*, const QSize&, const QWidget*) const’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:3880:68: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 3880 | size.setWidth(size.width() + opt->fontMetrics.width("...")); //设置宽度为最小省略号("...")的宽度
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
# 106 | int width(const QString &, int len = -1) const;
# | ^~~~~
# 3878| size.setWidth(size.width() + frame_margins + left_margins);
# 3879| } else {
# 3880|-> size.setWidth(size.width() + opt->fontMetrics.width("...")); //设置宽度为最小省略号("...")的宽度
# 3881| }
# 3882| }
Error: COMPILER_WARNING (CWE-477): [#def20]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:3938:64: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 3938 | size.setWidth(size.width() + opt->fontMetrics.width("xxx"));
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
# 106 | int width(const QString &, int len = -1) const;
# | ^~~~~
# 3936| size = QRect(QPoint(0, 0), size).marginsAdded(item_margins).size();
# 3937| }
# 3938|-> size.setWidth(size.width() + opt->fontMetrics.width("xxx"));
# 3939|
# 3940| return size;
Error: COMPILER_WARNING (CWE-477): [#def21]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:3990:64: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 3990 | int textWidth = menuItem->fontMetrics.width(menuItem->text.mid(tabIndex + 1));
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
# 106 | int width(const QString &, int len = -1) const;
# | ^~~~~
# 3988|
# 3989| if (tabIndex != -1) {
# 3990|-> int textWidth = menuItem->fontMetrics.width(menuItem->text.mid(tabIndex + 1));
# 3991|
# 3992| if (menuItem->tabWidth == 0)
Error: CLANG_WARNING: [#def22]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:3993:25: warning[deadcode.DeadStores]: Value stored to 'm_width' is never read
# 3991|
# 3992| if (menuItem->tabWidth == 0)
# 3993|-> m_width -= textWidth;
# 3994| }
# 3995| }
Error: COMPILER_WARNING (CWE-477): [#def23]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘virtual int chameleon::ChameleonStyle::styleHint(QStyle::StyleHint, const QStyleOption*, const QWidget*, QStyleHintReturn*) const’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:4187:37: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead
# 4187 | return Qt::LeftButton | Qt::MidButton;
# | ^~~~~~~~~
/usr/include/qt5/QtCore/qobjectdefs.h:48: included_from: Included from here.
/usr/include/qt5/QtCore/qmetaobject.h:44: included_from: Included from here.
/usr/include/qt5/QtCore/QMetaMethod:1: included_from: Included from here.
/usr/include/dtk5/DWidget/dtkwidget_global.h:10: included_from: Included from here.
/usr/include/dtk5/DWidget/dstyle.h:8: included_from: Included from here.
/usr/include/qt5/QtCore/qnamespace.h:138:9: note: declared here
# 138 | MidButton Q_DECL_ENUMERATOR_DEPRECATED_X("MidButton is deprecated. Use MiddleButton instead") = MiddleButton,
# | ^~~~~~~~~
# 4185| return QFrame::NoFrame | QFrame::Plain;
# 4186| case SH_Slider_AbsoluteSetButtons:
# 4187|-> return Qt::LeftButton | Qt::MidButton;
# 4188| case SH_ToolTipLabel_Opacity:
# 4189| return 255;
Error: COMPILER_WARNING (CWE-477): [#def24]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘virtual void chameleon::ChameleonStyle::polish(QWidget*)’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:4323:43: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 4323 | int width = w->fontMetrics().width("9999");
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
# 106 | int width(const QString &, int len = -1) const;
# | ^~~~~
# 4321| w->setProperty("_d_dtk_spinBox", true);
# 4322| //直接取用spinBox最大年限
# 4323|-> int width = w->fontMetrics().width("9999");
# 4324| w->setMaximumWidth(width * 3);
# 4325| }
Error: COMPILER_WARNING (CWE-477): [#def25]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:4376:59: warning[-Wdeprecated-declarations]: ‘static Qt::TextFormat Dtk::Widget::DStyle::tooltipTextFormat()’ is deprecated: Use DToolTip::toolTipTextFormat()
# 4376 | label->setTextFormat(DStyle::tooltipTextFormat());
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/dtk5/DWidget/dstyle.h:223:84: note: declared here
# 223 | D_DECL_DEPRECATED_X("Use DToolTip::toolTipTextFormat()") static Qt::TextFormat tooltipTextFormat();
# | ^~~~~~~~~~~~~~~~~
# 4374| }
# 4375| QLabel *label = qobject_cast<QLabel *>(w);
# 4376|-> label->setTextFormat(DStyle::tooltipTextFormat());
# 4377| }
# 4378| }
Error: CLANG_WARNING: [#def26]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:4443:58: warning[core.CallAndMessage]: Called C++ object pointer is null
# 4441| }
# 4442|
# 4443|-> bool table = qobject_cast<const QTableView *>(w) && !w->property("_d_dtk_enable_tableviewitem_radius").toBool();
# 4444| //QCalendarWidget的QTableView焦点状态与QTableView不同
# 4445| bool calendar = w && (w->objectName() == "qt_calendar_calendarview");
Error: COMPILER_WARNING (CWE-477): [#def27]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp: scope_hint: In member function ‘QColor chameleon::ChameleonStyle::getColor(const QStyleOption*, Dtk::Gui::DPalette::ColorType, const QWidget*) const’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:4556:46: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper
# 4556 | const DPalette &pa = DApplicationHelper::instance()->palette(widget, option->palette);
# | ^~~~~~~~
/usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/styleplugins/chameleon/chameleonstyle.cpp:12: 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
# | ^~~~~~~~~~~~~~~~~~
# 4554| QColor ChameleonStyle::getColor(const QStyleOption *option, DPalette::ColorType type, const QWidget *widget) const
# 4555| {
# 4556|-> const DPalette &pa = DApplicationHelper::instance()->palette(widget, option->palette);
# 4557|
# 4558| return DStyle::generatedBrush(option, pa.brush(type), pa.currentColorGroup(), type).color();
Error: COMPILER_WARNING (CWE-477): [#def28]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/tests/styleplugins/chameleon/ut_chameleonstyle.cpp: scope_hint: In member function ‘bool TestForDrawUtil::testPixmapHasData()’
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/tests/styleplugins/chameleon/ut_chameleonstyle.cpp:326:45: warning[-Wdeprecated-declarations]: ‘int QImage::byteCount() const’ is deprecated: Use sizeInBytes
# 326 | const QRgb *end = bits + image.byteCount() / sizeof(QRgb);
# | ~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qbrush.h:51: included_from: Included from here.
/usr/include/qt5/QtGui/qpalette.h:46: included_from: Included from here.
/usr/include/qt5/QtWidgets/qwidget.h:48: included_from: Included from here.
/usr/include/qt5/QtWidgets/qtabbar.h:44: included_from: Included from here.
/usr/include/qt5/QtWidgets/QTabBar:1: included_from: Included from here.
/usr/include/dtk5/DWidget/dtabbar.h:8: included_from: Included from here.
/usr/include/dtk5/DWidget/DTabBar:1: included_from: Included from here.
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/tests/styleplugins/chameleon/ut_chameleonstyle.cpp:7: included_from: Included from here.
/usr/include/qt5/QtGui/qimage.h:221:44: note: declared here
# 221 | QT_DEPRECATED_X("Use sizeInBytes") int byteCount() const;
# | ^~~~~~~~~
# 324| image.reinterpretAsFormat(QImage::Format_RGB32);
# 325| const QRgb *bits = reinterpret_cast<const QRgb *>(image.constBits());
# 326|-> const QRgb *end = bits + image.byteCount() / sizeof(QRgb);
# 327| return !std::all_of(bits, end, [](QRgb r) { return r == QColor(Qt::green).rgb(); });
# 328| }
Error: COMPILER_WARNING (CWE-477): [#def29]
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/tests/styleplugins/chameleon/ut_chameleonstyle.cpp: scope_hint: In lambda function
deepin-qt5integration-5.6.11-build/qt5integration-5.6.11/tests/styleplugins/chameleon/ut_chameleonstyle.cpp:1551:57: warning[-Wdeprecated-declarations]: ‘const QBrush& QPalette::background() const’ is deprecated: Use QPalette::window() instead
# 1551 | painter->setBackground(option.palette.background());
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qpalette.h:149:26: note: declared here
# 149 | inline const QBrush &background() const { return window(); }
# | ^~~~~~~~~~
# 1549| option.features |= QStyleOptionFrame::Rounded;
# 1550| option.lineWidth = 0;
# 1551|-> painter->setBackground(option.palette.background());
# 1552|
# 1553| style->drawPrimitive(QStyle::PE_Frame, &option, painter, testWidget);
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-145.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | deepin-qt5integration-5.6.11-7.fc41 |
store-results-to | /tmp/tmpp1tdkt61/deepin-qt5integration-5.6.11-7.fc41.tar.xz |
time-created | 2024-07-03 12:21:24 |
time-finished | 2024-07-03 12:23:24 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpp1tdkt61/deepin-qt5integration-5.6.11-7.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpp1tdkt61/deepin-qt5integration-5.6.11-7.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |