Error: COMPILER_WARNING (CWE-477): [#def1] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpression.cpp: scope_hint: In constructor ‘KUserFeedback::SurveyTargetExpression::SurveyTargetExpression(const QString&, const QVariant&, const QString&)’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpression.cpp:22:19: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 22 | if (index.type() == QVariant::Int) # | ~~~~~~~~~~^~ /usr/include/qt6/QtCore/QVariant:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpression.h:12: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpression.cpp:7: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ # 20| , m_sourceElement(elem) # 21| { # 22|-> if (index.type() == QVariant::Int) # 23| m_type = ListElement; # 24| else if (index.type() == QVariant::String) Error: COMPILER_WARNING (CWE-477): [#def2] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpression.cpp:24:24: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 24 | else if (index.type() == QVariant::String) # | ~~~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ # 22| if (index.type() == QVariant::Int) # 23| m_type = ListElement; # 24|-> else if (index.type() == QVariant::String) # 25| m_type = MapElement; # 26| else Error: COMPILER_WARNING (CWE-477): [#def3] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpressionevaluator.cpp: scope_hint: In member function ‘bool KUserFeedback::SurveyTargetExpressionEvaluator::evaluate(KUserFeedback::SurveyTargetExpression*)’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpressionevaluator.cpp:68:17: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 68 | if (lhs.type() == QVariant::Invalid || rhs.type() == QVariant::Invalid) // invalid element access can never succeed # | ~~~~~~~~^~ /usr/include/qt6/QtCore/QVariant:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpression.h:12: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpressionevaluator.cpp:8: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ # 66| const auto lhs = value(expression->left()); # 67| const auto rhs = value(expression->right()); # 68|-> if (lhs.type() == QVariant::Invalid || rhs.type() == QVariant::Invalid) // invalid element access can never succeed # 69| return false; # 70| if ((lhs.type() == QVariant::String && rhs.type() != QVariant::String) Error: COMPILER_WARNING (CWE-477): [#def4] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpressionevaluator.cpp:68:52: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 68 | if (lhs.type() == QVariant::Invalid || rhs.type() == QVariant::Invalid) // invalid element access can never succeed # | ~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ # 66| const auto lhs = value(expression->left()); # 67| const auto rhs = value(expression->right()); # 68|-> if (lhs.type() == QVariant::Invalid || rhs.type() == QVariant::Invalid) // invalid element access can never succeed # 69| return false; # 70| if ((lhs.type() == QVariant::String && rhs.type() != QVariant::String) Error: COMPILER_WARNING (CWE-477): [#def5] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpressionevaluator.cpp:70:18: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 70 | if ((lhs.type() == QVariant::String && rhs.type() != QVariant::String) # | ~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ # 68| if (lhs.type() == QVariant::Invalid || rhs.type() == QVariant::Invalid) // invalid element access can never succeed # 69| return false; # 70|-> if ((lhs.type() == QVariant::String && rhs.type() != QVariant::String) # 71| || (lhs.type() != QVariant::String && rhs.type() == QVariant::String)) # 72| return false; // strings can only be compared to strings Error: COMPILER_WARNING (CWE-477): [#def6] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpressionevaluator.cpp:70:52: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 70 | if ((lhs.type() == QVariant::String && rhs.type() != QVariant::String) # | ~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ # 68| if (lhs.type() == QVariant::Invalid || rhs.type() == QVariant::Invalid) // invalid element access can never succeed # 69| return false; # 70|-> if ((lhs.type() == QVariant::String && rhs.type() != QVariant::String) # 71| || (lhs.type() != QVariant::String && rhs.type() == QVariant::String)) # 72| return false; // strings can only be compared to strings Error: COMPILER_WARNING (CWE-477): [#def7] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpressionevaluator.cpp:71:21: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 71 | || (lhs.type() != QVariant::String && rhs.type() == QVariant::String)) # | ~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ # 69| return false; # 70| if ((lhs.type() == QVariant::String && rhs.type() != QVariant::String) # 71|-> || (lhs.type() != QVariant::String && rhs.type() == QVariant::String)) # 72| return false; // strings can only be compared to strings # 73| Error: COMPILER_WARNING (CWE-477): [#def8] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/common/surveytargetexpressionevaluator.cpp:71:55: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 71 | || (lhs.type() != QVariant::String && rhs.type() == QVariant::String)) # | ~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ # 69| return false; # 70| if ((lhs.type() == QVariant::String && rhs.type() != QVariant::String) # 71|-> || (lhs.type() != QVariant::String && rhs.type() == QVariant::String)) # 72| return false; // strings can only be compared to strings # 73| Error: COMPILER_WARNING (CWE-477): [#def9] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/categoryaggregator.cpp: scope_hint: In member function ‘void KUserFeedback::Console::CategoryAggregator::updateTimelineChart()’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/categoryaggregator.cpp:105:54: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisX(QAbstractSeries*) const’ is deprecated # 105 | areaSeries->attachAxis(m_timelineChart->axisX()); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/QChart:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/categoryaggregator.cpp:17: included_from: Included from here. /usr/include/qt6/QtCharts/qchart.h:83:38: note: declared here # 83 | Q_DECL_DEPRECATED QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 103| m_timelineChart->addSeries(areaSeries); # 104| # 105|-> areaSeries->attachAxis(m_timelineChart->axisX()); # 106| areaSeries->attachAxis(m_timelineChart->axisY()); # 107| Error: COMPILER_WARNING (CWE-477): [#def10] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/categoryaggregator.cpp:106:54: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 106 | areaSeries->attachAxis(m_timelineChart->axisY()); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 104| # 105| areaSeries->attachAxis(m_timelineChart->axisX()); # 106|-> areaSeries->attachAxis(m_timelineChart->axisY()); # 107| # 108| prevSeries = series; Error: COMPILER_WARNING (CWE-477): [#def11] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/categoryaggregator.cpp:112:27: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 112 | m_timelineChart->axisY()->setRange(0, max); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 110| # 111| const auto max = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::MaximumValueRole).toInt(); # 112|-> m_timelineChart->axisY()->setRange(0, max); # 113| qobject_cast<QValueAxis*>(m_timelineChart->axisY())->applyNiceNumbers(); # 114| } Error: COMPILER_WARNING (CWE-477): [#def12] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/categoryaggregator.cpp:113:53: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 113 | qobject_cast<QValueAxis*>(m_timelineChart->axisY())->applyNiceNumbers(); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 111| const auto max = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::MaximumValueRole).toInt(); # 112| m_timelineChart->axisY()->setRange(0, max); # 113|-> qobject_cast<QValueAxis*>(m_timelineChart->axisY())->applyNiceNumbers(); # 114| } # 115| Error: COMPILER_WARNING (CWE-477): [#def13] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/numericaggregator.cpp: scope_hint: In member function ‘void KUserFeedback::Console::NumericAggregator::updateTimelineChart()’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/numericaggregator.cpp:81:46: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisX(QAbstractSeries*) const’ is deprecated # 81 | series->attachAxis(m_timelineChart->axisX()); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/QChart:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/numericaggregator.cpp:15: included_from: Included from here. /usr/include/qt6/QtCharts/qchart.h:83:38: note: declared here # 83 | Q_DECL_DEPRECATED QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 79| m_timelineChart->addSeries(series); # 80| # 81|-> series->attachAxis(m_timelineChart->axisX()); # 82| series->attachAxis(m_timelineChart->axisY()); # 83| Error: COMPILER_WARNING (CWE-477): [#def14] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/numericaggregator.cpp:82:46: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 82 | series->attachAxis(m_timelineChart->axisY()); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 80| # 81| series->attachAxis(m_timelineChart->axisX()); # 82|-> series->attachAxis(m_timelineChart->axisY()); # 83| # 84| QStringList l; Error: COMPILER_WARNING (CWE-477): [#def15] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/numericaggregator.cpp:89:59: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisX(QAbstractSeries*) const’ is deprecated # 89 | qobject_cast<QBarCategoryAxis*>(m_timelineChart->axisX())->setCategories(l); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:83:38: note: declared here # 83 | Q_DECL_DEPRECATED QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 87| } # 88| # 89|-> qobject_cast<QBarCategoryAxis*>(m_timelineChart->axisX())->setCategories(l); # 90| const auto max = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::MaximumValueRole).toInt(); # 91| m_timelineChart->axisY()->setRange(0, max); Error: COMPILER_WARNING (CWE-477): [#def16] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/numericaggregator.cpp:91:27: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 91 | m_timelineChart->axisY()->setRange(0, max); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 89| qobject_cast<QBarCategoryAxis*>(m_timelineChart->axisX())->setCategories(l); # 90| const auto max = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::MaximumValueRole).toInt(); # 91|-> m_timelineChart->axisY()->setRange(0, max); # 92| qobject_cast<QValueAxis*>(m_timelineChart->axisY())->applyNiceNumbers(); # 93| } Error: COMPILER_WARNING (CWE-477): [#def17] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/numericaggregator.cpp:92:53: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 92 | qobject_cast<QValueAxis*>(m_timelineChart->axisY())->applyNiceNumbers(); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 90| const auto max = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::MaximumValueRole).toInt(); # 91| m_timelineChart->axisY()->setRange(0, max); # 92|-> qobject_cast<QValueAxis*>(m_timelineChart->axisY())->applyNiceNumbers(); # 93| } Error: COMPILER_WARNING (CWE-477): [#def18] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/ratiosetaggregator.cpp: scope_hint: In member function ‘void KUserFeedback::Console::RatioSetAggregator::updateTimelineChart()’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/ratiosetaggregator.cpp:100:54: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisX(QAbstractSeries*) const’ is deprecated # 100 | areaSeries->attachAxis(m_timelineChart->axisX()); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/QChart:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/ratiosetaggregator.cpp:16: included_from: Included from here. /usr/include/qt6/QtCharts/qchart.h:83:38: note: declared here # 83 | Q_DECL_DEPRECATED QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 98| m_timelineChart->addSeries(areaSeries); # 99| # 100|-> areaSeries->attachAxis(m_timelineChart->axisX()); # 101| areaSeries->attachAxis(m_timelineChart->axisY()); # 102| Error: COMPILER_WARNING (CWE-477): [#def19] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/ratiosetaggregator.cpp:101:54: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 101 | areaSeries->attachAxis(m_timelineChart->axisY()); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 99| # 100| areaSeries->attachAxis(m_timelineChart->axisX()); # 101|-> areaSeries->attachAxis(m_timelineChart->axisY()); # 102| # 103| prevSeries = series; Error: COMPILER_WARNING (CWE-477): [#def20] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/ratiosetaggregator.cpp:106:56: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisX(QAbstractSeries*) const’ is deprecated # 106 | qobject_cast<QDateTimeAxis*>(m_timelineChart->axisX())->setTickCount(std::min(model->rowCount(), 12)); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:83:38: note: declared here # 83 | Q_DECL_DEPRECATED QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 104| } # 105| # 106|-> qobject_cast<QDateTimeAxis*>(m_timelineChart->axisX())->setTickCount(std::min(model->rowCount(), 12)); # 107| m_timelineChart->axisY()->setRange(0, 1); // TODO can we turn this into *100% for display? # 108| } Error: COMPILER_WARNING (CWE-477): [#def21] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/ratiosetaggregator.cpp:107:27: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 107 | m_timelineChart->axisY()->setRange(0, 1); // TODO can we turn this into *100% for display? # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 105| # 106| qobject_cast<QDateTimeAxis*>(m_timelineChart->axisX())->setTickCount(std::min(model->rowCount(), 12)); # 107|-> m_timelineChart->axisY()->setRange(0, 1); // TODO can we turn this into *100% for display? # 108| } # 109| Error: COMPILER_WARNING (CWE-477): [#def22] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/totalaggregator.cpp: scope_hint: In member function ‘void KUserFeedback::Console::TotalAggregator::updateTimelineChart()’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/totalaggregator.cpp:84:46: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisX(QAbstractSeries*) const’ is deprecated # 84 | series->attachAxis(m_timelineChart->axisX()); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/QChart:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/totalaggregator.cpp:12: included_from: Included from here. /usr/include/qt6/QtCharts/qchart.h:83:38: note: declared here # 83 | Q_DECL_DEPRECATED QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 82| m_timelineChart->addSeries(series); # 83| # 84|-> series->attachAxis(m_timelineChart->axisX()); # 85| series->attachAxis(m_timelineChart->axisY()); # 86| Error: COMPILER_WARNING (CWE-477): [#def23] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/totalaggregator.cpp:85:46: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 85 | series->attachAxis(m_timelineChart->axisY()); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 83| # 84| series->attachAxis(m_timelineChart->axisX()); # 85|-> series->attachAxis(m_timelineChart->axisY()); # 86| # 87| const auto beginDt = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::DateTimeRole).toDateTime(); Error: COMPILER_WARNING (CWE-477): [#def24] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/totalaggregator.cpp:89:27: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisX(QAbstractSeries*) const’ is deprecated # 89 | m_timelineChart->axisX()->setRange(beginDt, endDt); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:83:38: note: declared here # 83 | Q_DECL_DEPRECATED QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 87| const auto beginDt = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::DateTimeRole).toDateTime(); # 88| const auto endDt = timeAggregationModel()->index(timeAggregationModel()->rowCount() - 1, 0).data(TimeAggregationModel::DateTimeRole).toDateTime(); # 89|-> m_timelineChart->axisX()->setRange(beginDt, endDt); # 90| qobject_cast<QDateTimeAxis*>(m_timelineChart->axisX())->setTickCount(std::min(timeAggregationModel()->rowCount(), 12)); # 91| const auto max = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::MaximumValueRole).toInt(); Error: COMPILER_WARNING (CWE-477): [#def25] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/totalaggregator.cpp:90:56: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisX(QAbstractSeries*) const’ is deprecated # 90 | qobject_cast<QDateTimeAxis*>(m_timelineChart->axisX())->setTickCount(std::min(timeAggregationModel()->rowCount(), 12)); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:83:38: note: declared here # 83 | Q_DECL_DEPRECATED QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 88| const auto endDt = timeAggregationModel()->index(timeAggregationModel()->rowCount() - 1, 0).data(TimeAggregationModel::DateTimeRole).toDateTime(); # 89| m_timelineChart->axisX()->setRange(beginDt, endDt); # 90|-> qobject_cast<QDateTimeAxis*>(m_timelineChart->axisX())->setTickCount(std::min(timeAggregationModel()->rowCount(), 12)); # 91| const auto max = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::MaximumValueRole).toInt(); # 92| m_timelineChart->axisY()->setRange(0, max); Error: COMPILER_WARNING (CWE-477): [#def26] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/totalaggregator.cpp:92:27: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 92 | m_timelineChart->axisY()->setRange(0, max); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 90| qobject_cast<QDateTimeAxis*>(m_timelineChart->axisX())->setTickCount(std::min(timeAggregationModel()->rowCount(), 12)); # 91| const auto max = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::MaximumValueRole).toInt(); # 92|-> m_timelineChart->axisY()->setRange(0, max); # 93| qobject_cast<QValueAxis*>(m_timelineChart->axisY())->applyNiceNumbers(); # 94| } Error: COMPILER_WARNING (CWE-477): [#def27] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/analytics/totalaggregator.cpp:93:53: warning[-Wdeprecated-declarations]: ‘QAbstractAxis* QChart::axisY(QAbstractSeries*) const’ is deprecated # 93 | qobject_cast<QValueAxis*>(m_timelineChart->axisY())->applyNiceNumbers(); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCharts/qchart.h:84:38: note: declared here # 84 | Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const; # | ^~~~~ # 91| const auto max = timeAggregationModel()->index(0, 0).data(TimeAggregationModel::MaximumValueRole).toInt(); # 92| m_timelineChart->axisY()->setRange(0, max); # 93|-> qobject_cast<QValueAxis*>(m_timelineChart->axisY())->applyNiceNumbers(); # 94| } Error: COMPILER_WARNING (CWE-477): [#def28] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/schemaentry.cpp: scope_hint: In member function ‘QJsonObject KUserFeedback::Console::SchemaEntry::toJsonObject() const’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/schemaentry.cpp:114:40: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QList<KUserFeedback::Console::SchemaEntryElement>; typename std::add_const<_Tp>::type = const QList<KUserFeedback::Console::SchemaEntryElement>]’ is deprecated: Use std::as_const() instead. # 114 | for (const auto &element : qAsConst(d->elements)) # | ~~~~~~~~^~~~~~~~~~~~~ /usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here. /usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here. /usr/include/qt6/QtCore/qnamespace.h:12: included_from: Included from here. /usr/include/qt6/QtCore/qobjectdefs.h:12: included_from: Included from here. /usr/include/qt6/QtCore/qobject.h:10: included_from: Included from here. /usr/include/qt6/QtCore/QObject:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/schemaentry.h:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/schemaentry.cpp:7: included_from: Included from here. /usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here # 36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; } # | ^~~~~~~~ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/aggregationeditormodel.cpp:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/util.h: scope_hint: In instantiation of ‘QByteArray KUserFeedback::Console::Util::enumToString(Enum) [with Enum = KUserFeedback::Console::Aggregation::Type]’ #/builddir/build/BUILD/kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/aggregationeditormodel.cpp:57:42: required from here # 57 | return Util::enumToString(aggr.type()); # | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ # 112| # 113| QJsonArray array; # 114|-> for (const auto &element : qAsConst(d->elements)) # 115| array.push_back(element.toJsonObject()); # 116| obj.insert(QStringLiteral("elements"), array); Error: COMPILER_WARNING (CWE-477): [#def29] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/util.h:32:53: warning[-Wdeprecated-declarations]: ‘static const QMetaObject* QMetaType::metaObjectForType(int)’ is deprecated # 32 | const auto mo = QMetaType::metaObjectForType(qMetaTypeId<Enum>()); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qobject.h:18: included_from: Included from here. /usr/include/qt6/QtCore/QObject:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/schemaentry.h:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/product.h:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/aggregationeditormodel.h:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/aggregationeditormodel.cpp:7: included_from: Included from here. /usr/include/qt6/QtCore/qmetatype.h:444:31: note: declared here # 444 | static const QMetaObject *metaObjectForType(int type) # | ^~~~~~~~~~~~~~~~~ # 30| QByteArray enumToString(Enum v) # 31| { # 32|-> const auto mo = QMetaType::metaObjectForType(qMetaTypeId<Enum>()); # 33| if (!mo) # 34| return {}; Error: COMPILER_WARNING (CWE-477): [#def30] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/util.h:36:56: warning[-Wdeprecated-declarations]: ‘static const char* QMetaType::typeName(int)’ is deprecated # 36 | const QByteArray typeName = QMetaType::typeName(qMetaTypeId<Enum>()); # | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qmetatype.h:435:24: note: declared here # 435 | static const char *typeName(int type) # | ^~~~~~~~ # 34| return {}; # 35| # 36|-> const QByteArray typeName = QMetaType::typeName(qMetaTypeId<Enum>()); # 37| const auto idx = typeName.lastIndexOf("::"); # 38| if (idx <= 0) Error: COMPILER_WARNING (CWE-477): [#def31] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/helpcontroller.cpp: scope_hint: In function ‘bool KUserFeedback::Console::HelpController::isAvailable()’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/helpcontroller.cpp:71:46: warning[-Wdeprecated-declarations]: ‘static QString QLibraryInfo::location(LibraryLocation)’ is deprecated: Use path() # 71 | d->assistantPath = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator() + QStringLiteral("assistant"); # | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/QLibraryInfo:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/helpcontroller.cpp:16: included_from: Included from here. /usr/include/qt6/QtCore/qlibraryinfo.h:49:20: note: declared here # 49 | static QString location(LibraryLocation location) # | ^~~~~~~~ # 69| return true; # 70| # 71|-> d->assistantPath = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator() + QStringLiteral("assistant"); # 72| QFileInfo assistFile(d->assistantPath); # 73| if (!assistFile.isExecutable()) { Error: COMPILER_WARNING (CWE-477): [#def32] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/categoryaggregationmodel.cpp: scope_hint: In member function ‘void KUserFeedback::Console::CategoryAggregationModel::recompute()’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/categoryaggregationmodel.cpp:151:48: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QString>; typename std::add_const<_Tp>::type = const QList<QString>]’ is deprecated: Use std::as_const() instead. # 151 | for (const auto &cat : qAsConst(cats)) # | ~~~~~~~~^~~~~~ /usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here. /usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here. /usr/include/qt6/QtCore/qnamespace.h:12: included_from: Included from here. /usr/include/qt6/QtCore/qobjectdefs.h:12: included_from: Included from here. /usr/include/qt6/QtCore/qobject.h:10: included_from: Included from here. /usr/include/qt6/QtCore/QObject:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/schemaentry.h:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/aggregationelement.h:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/aggregation.h:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/categoryaggregationmodel.h:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/categoryaggregationmodel.cpp:7: included_from: Included from here. /usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here # 36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; } # | ^~~~~~~~ # 149| std::sort(cats.begin(), cats.end()); # 150| depthCategories[i + 1].push_back(cats); # 151|-> for (const auto &cat : qAsConst(cats)) # 152| depthSamples[i + 1].push_back(catHash.value(cat)); # 153| if (k > 0 || j > 0) Error: COMPILER_WARNING (CWE-477): [#def33] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/datamodel.cpp: scope_hint: In function ‘QString mapToString(const QVariantMap&)’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/datamodel.cpp:25:28: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 25 | if (it.value().type() == QVariant::Map) # | ~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCore/qabstractitemmodel.h:12: included_from: Included from here. /usr/include/qt6/QtCore/QAbstractTableModel:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/datamodel.h:14: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/datamodel.cpp:7: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/schemamodel.cpp:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/core/util.h: scope_hint: In instantiation of ‘QByteArray KUserFeedback::Console::Util::enumToString(Enum) [with Enum = KUserFeedback::Console::SchemaEntry::DataType]’ #/builddir/build/BUILD/kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/model/schemamodel.cpp:116:46: required from here # 116 | return Util::enumToString(entry.dataType()); # | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ # 23| l.reserve(map.size()); # 24| for (auto it = map.begin(); it != map.end(); ++it) { # 25|-> if (it.value().type() == QVariant::Map) # 26| l.push_back(it.key() + QLatin1String(": {") + mapToString(it.value().toMap()) + QLatin1Char('}')); # 27| else Error: COMPILER_WARNING (CWE-477): [#def34] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/widgets/metaenumcombobox.cpp: scope_hint: In member function ‘void KUserFeedback::Console::MetaEnumComboBox::setValue(const QVariant&)’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/widgets/metaenumcombobox.cpp:36:49: warning[-Wdeprecated-declarations]: ‘static const QMetaObject* QMetaType::metaObjectForType(int)’ is deprecated # 36 | const auto mo = QMetaType::metaObjectForType(value.userType()); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qobject.h:18: included_from: Included from here. /usr/include/qt6/QtWidgets/qwidget.h:9: included_from: Included from here. /usr/include/qt6/QtWidgets/qcombobox.h:8: included_from: Included from here. /usr/include/qt6/QtWidgets/QComboBox:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/widgets/metaenumcombobox.h:10: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/console/widgets/metaenumcombobox.cpp:7: included_from: Included from here. /usr/include/qt6/QtCore/qmetatype.h:444:31: note: declared here # 444 | static const QMetaObject *metaObjectForType(int type) # | ^~~~~~~~~~~~~~~~~ # 34| m_value = value; # 35| # 36|-> const auto mo = QMetaType::metaObjectForType(value.userType()); # 37| if (!mo) # 38| return; Error: COMPILER_WARNING (CWE-477): [#def35] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/provider/core/localeinfosource.cpp:28:64: warning[-Wdeprecated-declarations]: ‘static QString QLocale::countryToString(Country)’ is deprecated: Use territoryToString(Territory) instead # 28 | m.insert(QStringLiteral("region"), QLocale::countryToString(l.country())); # | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/qt6/QtCore/qlocale.h:1142:20: note: declared here # 1142 | static QString countryToString(Country country); # | ^~~~~~~~~~~~~~~ # 26| QLocale l; # 27| QVariantMap m; # 28|-> m.insert(QStringLiteral("region"), QLocale::countryToString(l.country())); # 29| m.insert(QStringLiteral("language"), QLocale::languageToString(l.language())); # 30| return m; Error: COMPILER_WARNING (CWE-477): [#def36] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/provider/core/localeinfosource.cpp: scope_hint: In member function ‘virtual QVariant KUserFeedback::LocaleInfoSource::data()’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/provider/core/localeinfosource.cpp:28:74: warning[-Wdeprecated-declarations]: ‘QLocale::Country QLocale::country() const’ is deprecated: Use territory() instead # 28 | m.insert(QStringLiteral("region"), QLocale::countryToString(l.country())); # | ~~~~~~~~~^~ /usr/include/qt6/QtCore/QLocale:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/provider/core/localeinfosource.cpp:9: included_from: Included from here. /usr/include/qt6/QtCore/qlocale.h:935:13: note: declared here # 935 | Country country() const; # | ^~~~~~~ # 26| QLocale l; # 27| QVariantMap m; # 28|-> m.insert(QStringLiteral("region"), QLocale::countryToString(l.country())); # 29| m.insert(QStringLiteral("language"), QLocale::languageToString(l.language())); # 30| return m; Error: COMPILER_WARNING (CWE-477): [#def37] kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/provider/core/provider.cpp: scope_hint: In member function ‘QString KUserFeedback::Provider::describeDataSources() const’ kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/provider/core/provider.cpp:743:32: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<KUserFeedback::AbstractDataSource*>; typename std::add_const<_Tp>::type = const QList<KUserFeedback::AbstractDataSource*>]’ is deprecated: Use std::as_const() instead. # 743 | for (auto source : qAsConst(d->dataSources)) { # | ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here. /usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here. /usr/include/qt6/QtCore/qloggingcategory.h:7: included_from: Included from here. /usr/include/qt6/QtCore/QLoggingCategory:1: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/redhat-linux-build/src/provider/core/logging_p.h:6: included_from: Included from here. kf6-kuserfeedback-6.8.0-build/kuserfeedback-6.8.0/src/provider/core/provider.cpp:9: included_from: Included from here. /usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here # 36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; } # | ^~~~~~~~ # 741| # 742| const auto modeEnum = mo.enumerator(modeEnumIdx); # 743|-> for (auto source : qAsConst(d->dataSources)) { # 744| ret += QString::fromUtf8(modeEnum.valueToKey(source->telemetryMode())) + QStringLiteral(": ") + source->name() + QLatin1Char('\n'); # 745| }
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-101.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | kf6-kuserfeedback-6.8.0-1.fc42 |
store-results-to | /tmp/tmp8vppol97/kf6-kuserfeedback-6.8.0-1.fc42.tar.xz |
time-created | 2024-11-13 00:59:39 |
time-finished | 2024-11-13 01:02:37 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp8vppol97/kf6-kuserfeedback-6.8.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp8vppol97/kf6-kuserfeedback-6.8.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |