Task #361 - added.err
back to task #361download
Error: COMPILER_WARNING (CWE-665): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.cpp:28:1: warning[-Wreorder]: when initialized here # 28 | GroupConfigOptDlg::GroupConfigOptDlg(const QString &groupName, QWidget *parent) # | ^~~~~~~~~~~~~~~~~ # 26| #include <DVerticalLine> # 27| # 28|-> GroupConfigOptDlg::GroupConfigOptDlg(const QString &groupName, QWidget *parent) # 29| : DAbstractDialog(false, parent), # 30| m_mainLayout(new QVBoxLayout), Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.cpp:51:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 51 | if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # | ^~~~~~~~ /usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.h:28: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.h:16: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.h:23: 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 # | ^~~~~~~~~~~~~~~~~~ # 49| DPalette palette = m_titleLabel->palette(); # 50| QColor color; # 51|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 52| color = QColor::fromRgb(192, 198, 212, 255); # 53| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.cpp:51:61: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 51 | if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 49| DPalette palette = m_titleLabel->palette(); # 50| QColor color; # 51|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 52| color = QColor::fromRgb(192, 198, 212, 255); # 53| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.cpp:94:39: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 94 | DPalette pa = DApplicationHelper::instance()->palette(pAddSaveButton); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 92| Utils::setSpaceInWord(pCancelButton); # 93| Utils::setSpaceInWord(pAddSaveButton); # 94|-> DPalette pa = DApplicationHelper::instance()->palette(pAddSaveButton); # 95| QBrush brush = pa.textLively().color(); # 96| pa.setBrush(DPalette::ButtonText, brush); Error: COMPILER_WARNING (CWE-665): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.h:45:18: warning[-Wreorder]: ‘Dtk::Widget::DLabel* GroupConfigOptDlg::m_iconLabel’ # 45 | DLabel *m_iconLabel; # | ^~~~~~~~~~~ # 43| # 44| private: # 45|-> DLabel *m_iconLabel; # 46| DLabel *m_titleLabel; # 47| DLineEdit *m_groupNameEdit; Error: COMPILER_WARNING (CWE-665): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.h:47:18: warning[-Wreorder]: ‘Dtk::Widget::DLineEdit* GroupConfigOptDlg::m_groupNameEdit’ # 47 | DLineEdit *m_groupNameEdit; # | ^~~~~~~~~~~~~~~ # 45| DLabel *m_iconLabel; # 46| DLabel *m_titleLabel; # 47|-> DLineEdit *m_groupNameEdit; # 48| QVBoxLayout *m_mainLayout; # 49| QHBoxLayout *m_headLayout; Error: COMPILER_WARNING (CWE-665): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.cpp:21: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.h: scope_hint: In constructor ‘GroupConfigOptDlg::GroupConfigOptDlg(const QString&, QWidget*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.h:49:18: warning[-Wreorder]: ‘GroupConfigOptDlg::m_headLayout’ will be initialized after # 49 | QHBoxLayout *m_headLayout; # | ^~~~~~~~~~~~ # 47| DLineEdit *m_groupNameEdit; # 48| QVBoxLayout *m_mainLayout; # 49|-> QHBoxLayout *m_headLayout; # 50| DWindowCloseButton *m_closeButton; # 51| ListView *m_serverList; Error: COMPILER_WARNING (CWE-665): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/groupconfigoptdlg.h:50:25: warning[-Wreorder]: ‘GroupConfigOptDlg::m_closeButton’ will be initialized after # 50 | DWindowCloseButton *m_closeButton; # | ^~~~~~~~~~~~~ # 48| QVBoxLayout *m_mainLayout; # 49| QHBoxLayout *m_headLayout; # 50|-> DWindowCloseButton *m_closeButton; # 51| ListView *m_serverList; # 52| }; Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementtoppanel.cpp: scope_hint: In member function ‘void RemoteManagementTopPanel::showPrevPanel()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementtoppanel.cpp:227:12: warning[-Wswitch]: enumeration value ‘PanelType_Serverlist’ not handled in switch # 227 | switch (prevType) { # | ^ # 225| // 动画效果 要显示的界面 # 226| QPropertyAnimation *animation1 = nullptr; # 227|-> switch (prevType) { # 228| case ServerConfigManager::PanelType_Manage: # 229| // 刷新主界面 Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementtoppanel.cpp: scope_hint: In member function ‘void RemoteManagementTopPanel::setPanelShowState(ServerConfigManager::PanelType)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementtoppanel.cpp:321:12: warning[-Wswitch]: enumeration value ‘PanelType_Serverlist’ not handled in switch # 321 | switch (panelType) { # | ^ # 319| m_remoteManagementSearchPanel->m_isShow = false; # 320| # 321|-> switch (panelType) { # 322| case ServerConfigManager::PanelType_Manage: # 323| m_remoteManagementPanel->m_isShow = true; Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:77:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_GroupLabel’ not handled in switch # 75| m_deleteButton->setIconSize(QSize(20, 20)); # 76| m_deleteButton->hide(); # 77|-> switch (iconType) { # 78| case ItemFuncType_Item: # 79| case ItemFuncType_Group: Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp: scope_hint: In member function ‘void ItemWidget::setFuncIcon(ItemFuncType)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:77:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_ItemLabel’ not handled in switch # 77 | switch (iconType) { # | ^ # 75| m_deleteButton->setIconSize(QSize(20, 20)); # 76| m_deleteButton->hide(); # 77|-> switch (iconType) { # 78| case ItemFuncType_Item: # 79| case ItemFuncType_Group: Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:102:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_GroupLabel’ not handled in switch # 100| # 101| // 第二行信息 # 102|-> switch (m_functType) { # 103| case ItemFuncType_Item: # 104| case ItemFuncType_UngroupedItem: Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp: scope_hint: In member function ‘void ItemWidget::setText(const QString&, const QString&)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:102:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_ItemLabel’ not handled in switch # 102 | switch (m_functType) { # | ^ # 100| # 101| // 第二行信息 # 102|-> switch (m_functType) { # 103| case ItemFuncType_Item: # 104| case ItemFuncType_UngroupedItem: Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:234:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_GroupLabel’ not handled in switch # 232| # 233| // 判断类型执行操作 # 234|-> switch (m_functType) { # 235| case ItemFuncType_Group: # 236| // 显示分组 Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp: scope_hint: In member function ‘void ItemWidget::onIconButtonClicked()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:234:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_ItemLabel’ not handled in switch # 234 | switch (m_functType) { # | ^ # 232| # 233| // 判断类型执行操作 # 234|-> switch (m_functType) { # 235| case ItemFuncType_Group: # 236| // 显示分组 Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:234:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_UngroupedItem’ not handled in switch # 232| # 233| // 判断类型执行操作 # 234|-> switch (m_functType) { # 235| case ItemFuncType_Group: # 236| // 显示分组 Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:594:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_GroupLabel’ not handled in switch # 592| /***add end by ut001121***/ # 593| # 594|-> switch (m_functType) { # 595| case ItemFuncType_Group: # 596| // 显示分组 Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp: scope_hint: In member function ‘void ItemWidget::onItemClicked()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:594:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_ItemLabel’ not handled in switch # 594 | switch (m_functType) { # | ^ # 592| /***add end by ut001121***/ # 593| # 594|-> switch (m_functType) { # 595| case ItemFuncType_Group: # 596| // 显示分组 Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp:624:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_GroupLabel’ not handled in switch # 622| void ListView::setItemIcon(ItemFuncType type, ItemWidget *item) # 623| { # 624|-> switch (type) { # 625| // 项图标 # 626| case ItemFuncType_Item: Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp: scope_hint: In member function ‘void ListView::setItemIcon(ItemFuncType, ItemWidget*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp:624:12: warning[-Wswitch]: enumeration value ‘ItemFuncType_ItemLabel’ not handled in switch # 624 | switch (type) { # | ^ # 622| void ListView::setItemIcon(ItemFuncType type, ItemWidget *item) # 623| { # 624|-> switch (type) { # 625| // 项图标 # 626| case ItemFuncType_Item: Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp:844:11: warning[-Wswitch]: enumeration value ‘ItemFuncType_GroupLabel’ not handled in switch # 842| // 弹出删除弹窗 # 843| QString title; # 844|-> switch(type) { # 845| case ItemFuncType_Item: # 846| if (ListType_Remote == m_type) Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp: scope_hint: In member function ‘void ListView::deleteItem(const QString&, ItemFuncType)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp:844:11: warning[-Wswitch]: enumeration value ‘ItemFuncType_ItemLabel’ not handled in switch # 844 | switch(type) { # | ^ # 842| // 弹出删除弹窗 # 843| QString title; # 844|-> switch(type) { # 845| case ItemFuncType_Item: # 846| if (ListType_Remote == m_type) Error: COMPILER_WARNING (CWE-1023): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp:844:11: warning[-Wswitch]: enumeration value ‘ItemFuncType_UngroupedItem’ not handled in switch # 842| // 弹出删除弹窗 # 843| QString title; # 844|-> switch(type) { # 845| case ItemFuncType_Item: # 846| if (ListType_Remote == m_type) Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp: scope_hint: In member function ‘void TermWidget::onThemeChanged(Dtk::Gui::DGuiApplicationHelper::ColorType)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:315:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 315 | if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) { # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 313| if ("System Theme" == Settings::instance()->colorScheme()) { # 314| QString theme; # 315|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) { # 316| theme = "Dark"; # 317| } else { Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:315:65: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 315 | if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) { # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 313| if ("System Theme" == Settings::instance()->colorScheme()) { # 314| QString theme; # 315|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) { # 316| theme = "Dark"; # 317| } else { Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp: scope_hint: In member function ‘void TermWidget::setTheme(const QString&)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:718:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 718 | DApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::UnknownType); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 716| // 跟随系统 # 717| if ("System Theme" == colorTheme) { # 718|-> DApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::UnknownType); # 719| if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) { # 720| theme = "Dark"; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:719:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 719 | if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) { # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 717| if ("System Theme" == colorTheme) { # 718| DApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::UnknownType); # 719|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) { # 720| theme = "Dark"; # 721| } else { Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:719:65: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 719 | if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) { # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 717| if ("System Theme" == colorTheme) { # 718| DApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::UnknownType); # 719|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) { # 720| theme = "Dark"; # 721| } else { Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:734:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 734 | DApplicationHelper::instance()->setPaletteType(systemTheme); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 732| systemTheme = DGuiApplicationHelper::LightType; # 733| } # 734|-> DApplicationHelper::instance()->setPaletteType(systemTheme); # 735| setColorScheme(theme); # 736| return;