Error: COMPILER_WARNING (CWE-477): [#def1] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/common/utils.cpp: scope_hint: In member function ‘void FontFilter::compareWhiteList()’ deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/common/utils.cpp:795:26: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(QChar) const’ is deprecated: Use QFontMetrics::horizontalAdvance # 795 | int fw = fm.width(REPCHAR[0]); # | ~~~~~~~~^~~~~~~~~~~~ /usr/include/qt5/QtGui/qfontmetrics.h:110:9: note: declared here # 110 | int width(QChar) const; # | ^~~~~ # 793| QFont font(sfont); # 794| QFontMetrics fm(font); # 795|-> int fw = fm.width(REPCHAR[0]); # 796| # 797| for (unsigned int i = 1; i < qstrlen(REPCHAR); i++) { Error: COMPILER_WARNING (CWE-477): [#def2] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/common/utils.cpp:798:31: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(QChar) const’ is deprecated: Use QFontMetrics::horizontalAdvance # 798 | if (fw != fm.width(QLatin1Char(REPCHAR[i]))) { # | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtGui/qfontmetrics.h:110:9: note: declared here # 110 | int width(QChar) const; # | ^~~~~ # 796| # 797| for (unsigned int i = 1; i < qstrlen(REPCHAR); i++) { # 798|-> if (fw != fm.width(QLatin1Char(REPCHAR[i]))) { # 799| fixedFont = false; # 800| break; Error: COMPILER_WARNING (CWE-477): [#def3] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/main.cpp: scope_hint: In function ‘int main(int, char**)’ deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/main.cpp:36:18: warning[-Wdeprecated-declarations]: ‘void QTime::start()’ is deprecated: Use QElapsedTimer instead # 36 | useTime.start(); # | ~~~~~~~~~~~~~^~ /usr/include/qt5/QtCore/qcborvalue.h:44: included_from: Included from here. /usr/include/qt5/QtCore/qcborarray.h:43: included_from: Included from here. /usr/include/qt5/QtCore/QtCore:38: included_from: Included from here. /usr/include/qt5/QtDBus/QtDBusDepends:3: included_from: Included from here. /usr/include/qt5/QtDBus/QtDBus:3: included_from: Included from here. /usr/include/libdframeworkdbus-2.0/com_deepin_wmswitcher.h:23: included_from: Included from here. deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/service.h:22: included_from: Included from here. deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/dbusmanager.h:8: included_from: Included from here. deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/main.cpp:8: included_from: Included from here. /usr/include/qt5/QtCore/qdatetime.h:235:55: note: declared here # 235 | QT_DEPRECATED_X("Use QElapsedTimer instead") void start(); # | ^~~~~ # 34| // 应用计时 # 35| QTime useTime; # 36|-> useTime.start(); # 37| //为了更精准,起动就度量时间 # 38| qint64 startTime = QDateTime::currentDateTime().toMSecsSinceEpoch(); Error: COMPILER_WARNING (CWE-477): [#def4] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::endAddTab(TermWidgetPage*, bool, int, qint64)’ deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:487:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 487 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::instance()->themeType()); # | ^~~~~~~~ /usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here. deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/views/pagesearchbar.h:11: included_from: Included from here. deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/views/termwidgetpage.h:11: included_from: Included from here. deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.h:11: included_from: Included from here. deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:6: 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 # | ^~~~~~~~~~~~~~~~~~ # 485| expandThemeStr = Settings::instance()->extendColorScheme(); # 486| if (!expandThemeStr.isEmpty()) # 487|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::instance()->themeType()); # 488| } # 489| Error: COMPILER_WARNING (CWE-477): [#def5] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::addThemeMenuItems()’ deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2147:42: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2147 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2145| //选中了内置主题在9-10项之间 // 浅色方案系列 # 2146| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::LightType); # 2147|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # 2148| }else{ # 2149| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); Error: COMPILER_WARNING (CWE-477): [#def6] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2150:42: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2150 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2148| }else{ # 2149| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2150|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2151| } # 2152| } Error: COMPILER_WARNING (CWE-477): [#def7] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::setThemeCheckItemSlot()’ deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2203:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2203 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2201| Settings::instance()->setExtendColorScheme(THEME_NO); # 2202| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::LightType); # 2203|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # 2204| return; # 2205| } Error: COMPILER_WARNING (CWE-477): [#def8] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2212:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2212 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2210| Settings::instance()->setExtendColorScheme(THEME_NO); # 2211| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2212|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2213| return; # 2214| } Error: COMPILER_WARNING (CWE-477): [#def9] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2221:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2221 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::instance()->themeType()); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2219| DGuiApplicationHelper::ColorType type = DGuiApplicationHelper::UnknownType; # 2220| DGuiApplicationHelper::instance()->setPaletteType(type); # 2221|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::instance()->themeType()); # 2222| return; # 2223| } Error: COMPILER_WARNING (CWE-477): [#def10] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2233:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2233 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2231| Settings::instance()->setExtendColorScheme(Settings::instance()->extendThemeStr); # 2232| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2233|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2234| return; # 2235| } Error: COMPILER_WARNING (CWE-477): [#def11] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2243:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2243 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2241| Settings::instance()->setExtendColorScheme(Settings::instance()->extendThemeStr); # 2242| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::LightType); # 2243|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # 2244| return; # 2245| } Error: COMPILER_WARNING (CWE-477): [#def12] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2252:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2252 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2250| Settings::instance()->setExtendColorScheme(Settings::instance()->extendThemeStr); # 2251| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2252|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2253| return; # 2254| } Error: COMPILER_WARNING (CWE-477): [#def13] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::menuHideSetThemeSlot()’ deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2264:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2264 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2262| Settings::instance()->setExtendColorScheme(THEME_NO); # 2263| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::LightType); # 2264|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # 2265| return; # 2266| } else if (currCheckThemeAction == darkThemeAction) { Error: COMPILER_WARNING (CWE-477): [#def14] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2270:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2270 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2268| Settings::instance()->setExtendColorScheme(THEME_NO); # 2269| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2270|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2271| return; # 2272| } else if (currCheckThemeAction == autoThemeAction) { Error: COMPILER_WARNING (CWE-477): [#def15] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2276:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2276 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::instance()->themeType()); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2274| DGuiApplicationHelper::ColorType type = DGuiApplicationHelper::UnknownType; # 2275| DGuiApplicationHelper::instance()->setPaletteType(type); # 2276|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::instance()->themeType()); # 2277| return; # 2278| } Error: COMPILER_WARNING (CWE-477): [#def16] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2303:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2303 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2301| # 2302| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2303|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2304| return; # 2305| } else if (currCheckThemeAction == themeNineAction || currCheckThemeAction == themeTenAction) { Error: COMPILER_WARNING (CWE-477): [#def17] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2313:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2313 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2311| # 2312| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::LightType); # 2313|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # 2314| return; # 2315| } else if (currCheckThemeAction == themeCustomAction) { Error: COMPILER_WARNING (CWE-477): [#def18] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2320:38: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2320 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2318| Settings::instance()->setColorScheme(THEME_LIGHT); # 2319| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::LightType); # 2320|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # 2321| } else { # 2322| Settings::instance()->setColorScheme(THEME_DARK); Error: COMPILER_WARNING (CWE-477): [#def19] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2324:38: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2324 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2322| Settings::instance()->setColorScheme(THEME_DARK); # 2323| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2324|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2325| } # 2326| Error: COMPILER_WARNING (CWE-477): [#def20] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::switchThemeAction(QAction*)’ deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2344:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2344 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2342| Settings::instance()->setExtendColorScheme(THEME_NO); # 2343| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::LightType); # 2344|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # 2345| return; # 2346| } Error: COMPILER_WARNING (CWE-477): [#def21] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2358:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2358 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2356| Settings::instance()->setExtendColorScheme(THEME_NO); # 2357| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2358|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2359| return; # 2360| Error: COMPILER_WARNING (CWE-477): [#def22] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2366:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2366 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::instance()->themeType()); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2364| Settings::instance()->setExtendColorScheme(THEME_NO); # 2365| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::UnknownType); # 2366|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::instance()->themeType()); # 2367| return; # 2368| } Error: COMPILER_WARNING (CWE-477): [#def23] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::switchThemeAction(QAction*&, const QString&)’ deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2446:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2446 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2444| Settings::instance()->setExtendColorScheme(themeNameStr); # 2445| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2446|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2447| return; # 2448| } Error: COMPILER_WARNING (CWE-477): [#def24] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2460:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2460 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2458| Settings::instance()->setExtendColorScheme(themeNameStr); # 2459| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::LightType); # 2460|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # 2461| return; # 2462| } Error: COMPILER_WARNING (CWE-477): [#def25] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2478:38: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2478 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2476| Settings::instance()->setColorScheme(THEME_LIGHT); # 2477| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::LightType); # 2478|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::LightType); # 2479| } else { # 2480| Settings::instance()->setColorScheme(THEME_DARK); Error: COMPILER_WARNING (CWE-477): [#def26] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/main/mainwindow.cpp:2482:38: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 2482 | emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 2480| Settings::instance()->setColorScheme(THEME_DARK); # 2481| DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::DarkType); # 2482|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::DarkType); # 2483| } # 2484| Error: COMPILER_WARNING (CWE-477): [#def27] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/remotemanage/serverconfigoptdlg.cpp: scope_hint: In member function ‘void ServerConfigOptDlg::handleThemeTypeChanged(Dtk::Gui::DGuiApplicationHelper::ColorType)’ deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/remotemanage/serverconfigoptdlg.cpp:291:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 291 | if (DApplicationHelper::DarkType == themeType) # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 289| //palette.setBrush(QPalette::WindowText, palette.color(DPalette::TextTitle)); # 290| QColor color; # 291|-> if (DApplicationHelper::DarkType == themeType) # 292| color = QColor::fromRgb(192, 198, 212, 255); # 293| else Error: COMPILER_WARNING (CWE-477): [#def28] deepin-terminal-5.9.43-build/deepin-terminal-5.9.43/src/remotemanage/serverconfigoptdlg.cpp:299:35: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 299 | palette = DApplicationHelper::instance()->palette(m_delServer); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 297| m_titleLabel->setPalette(palette); # 298| # 299|-> palette = DApplicationHelper::instance()->palette(m_delServer); # 300| palette.setColor(DPalette::ButtonText, palette.color(DPalette::TextWarning)); # 301| m_delServer->setPalette(palette);
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 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-230.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | deepin-terminal-6.0.12-3.fc41 |
diffbase-store-results-to | /tmp/tmpauv4z5hd/deepin-terminal-6.0.12-3.fc41.tar.xz |
diffbase-time-created | 2024-07-03 12:23:09 |
diffbase-time-finished | 2024-07-03 12:26:07 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpauv4z5hd/deepin-terminal-6.0.12-3.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpauv4z5hd/deepin-terminal-6.0.12-3.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-230.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | deepin-terminal-5.9.43-4.fc40 |
store-results-to | /tmp/tmpjkf5t8cp/deepin-terminal-5.9.43-4.fc40.tar.xz |
time-created | 2024-07-03 12:19:24 |
time-finished | 2024-07-03 12:22:51 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjkf5t8cp/deepin-terminal-5.9.43-4.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpjkf5t8cp/deepin-terminal-5.9.43-4.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |