Task #361 - deepin-terminal-6.0.12-3.fc41/scan-results.err
back to task #361download
Error: CLANG_WARNING: deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalCharacterDecoder.cpp:23: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalCharacterDecoder.h:25: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Character.h:218:16: warning[core.NullDereference]: Dereference of null pointer # 216| { # 217| if (backgroundColor._colorSpace == COLOR_SPACE_DEFAULT) # 218|-> return base[backgroundColor._u+0+(backgroundColor._v?BASE_COLORS:0)].fontWeight; # 219| else if (backgroundColor._colorSpace == COLOR_SPACE_SYSTEM) # 220| return base[backgroundColor._u+2+(backgroundColor._v?BASE_COLORS:0)].fontWeight; Error: CLANG_WARNING: deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Character.h:220:16: warning[core.NullDereference]: Dereference of null pointer # 218| return base[backgroundColor._u+0+(backgroundColor._v?BASE_COLORS:0)].fontWeight; # 219| else if (backgroundColor._colorSpace == COLOR_SPACE_SYSTEM) # 220|-> return base[backgroundColor._u+2+(backgroundColor._v?BASE_COLORS:0)].fontWeight; # 221| else # 222| return ColorEntry::UseCurrentFormat; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ColorScheme.cpp: scope_hint: In member function ‘Konsole::ColorEntry Konsole::ColorScheme::colorEntry(int, uint) const’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ColorScheme.cpp:178:15: warning[-Wdeprecated-declarations]: ‘void qsrand(uint)’ is deprecated: use QRandomGenerator instead # 178 | qsrand(randomSeed); # | ~~~~~~^~~~~~~~~~~~ /usr/include/qt5/QtCore/qchar.h:43: included_from: Included from here. /usr/include/qt5/QtCore/qhash.h:44: included_from: Included from here. /usr/include/qt5/QtCore/QHash:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ColorScheme.h:26: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ColorScheme.cpp:23: included_from: Included from here. /usr/include/qt5/QtCore/qglobal.h:1281:81: note: declared here # 1281 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") void qsrand(uint seed); # | ^~~~~~ # 176| # 177| if (randomSeed != 0) # 178|-> qsrand(randomSeed); # 179| # 180| ColorEntry entry = colorTable()[index]; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ColorScheme.cpp:188:47: warning[-Wdeprecated-declarations]: ‘int qrand()’ is deprecated: use QRandomGenerator instead # 188 | int hueDifference = range.hue ? (qrand() % range.hue) - range.hue / 2 : 0; # | ~~~~~^~ /usr/include/qt5/QtCore/qglobal.h:1282:80: note: declared here # 1282 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") int qrand(); # | ^~~~~ # 186| # 187| # 188|-> int hueDifference = range.hue ? (qrand() % range.hue) - range.hue / 2 : 0; # 189| int saturationDifference = range.saturation ? (qrand() % range.saturation) - range.saturation / 2 : 0; # 190| int valueDifference = range.value ? (qrand() % range.value) - range.value / 2 : 0; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ColorScheme.cpp:189:61: warning[-Wdeprecated-declarations]: ‘int qrand()’ is deprecated: use QRandomGenerator instead # 189 | int saturationDifference = range.saturation ? (qrand() % range.saturation) - range.saturation / 2 : 0; # | ~~~~~^~ /usr/include/qt5/QtCore/qglobal.h:1282:80: note: declared here # 1282 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") int qrand(); # | ^~~~~ # 187| # 188| int hueDifference = range.hue ? (qrand() % range.hue) - range.hue / 2 : 0; # 189|-> int saturationDifference = range.saturation ? (qrand() % range.saturation) - range.saturation / 2 : 0; # 190| int valueDifference = range.value ? (qrand() % range.value) - range.value / 2 : 0; # 191| Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ColorScheme.cpp:190:52: warning[-Wdeprecated-declarations]: ‘int qrand()’ is deprecated: use QRandomGenerator instead # 190 | int valueDifference = range.value ? (qrand() % range.value) - range.value / 2 : 0; # | ~~~~~^~ /usr/include/qt5/QtCore/qglobal.h:1282:80: note: declared here # 1282 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") int qrand(); # | ^~~~~ # 188| int hueDifference = range.hue ? (qrand() % range.hue) - range.hue / 2 : 0; # 189| int saturationDifference = range.saturation ? (qrand() % range.saturation) - range.saturation / 2 : 0; # 190|-> int valueDifference = range.value ? (qrand() % range.value) - range.value / 2 : 0; # 191| # 192| QColor &color = entry.color; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/KeyboardTranslator.cpp: scope_hint: In member function ‘Konsole::KeyboardTranslator* Konsole::KeyboardTranslatorManager::loadTranslator(const QString&)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/KeyboardTranslator.cpp:157:41: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 157 | qDebug() << __FUNCTION__ << path << endl; # | ^~~~ /usr/include/qt5/QtCore/QTextStream:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/KeyboardTranslator.cpp:33: included_from: Included from here. /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 155| # 156| QFile source(path); # 157|-> qDebug() << __FUNCTION__ << path << endl; # 158| if (name.isEmpty() || !source.open(QIODevice::ReadOnly | QIODevice::Text)) # 159| return nullptr; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ProcessInfo.cpp:356:36: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(QChar, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(QChar sep, Qt::SplitBehavior ...) variant instead # 356 | uidStrings << uidLine.split(QLatin1Char('\t'), QString::SkipEmptyParts); # | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qstring.h:612:17: note: declared here # 612 | QStringList split(QChar sep, SplitBehavior behavior, # | ^~~~~ # 354| } while (!statusLine.isNull() && uidLine.isNull()); # 355| # 356|-> uidStrings << uidLine.split(QLatin1Char('\t'), QString::SkipEmptyParts); # 357| // Must be 5 entries: 'Uid: %d %d %d %d' and # 358| // uid string must be less than 5 chars (uint) Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ProcessInfo.cpp: scope_hint: In member function ‘virtual bool Konsole::LinuxProcessInfo::readProcInfo(int)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ProcessInfo.cpp:356:65: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated # 356 | uidStrings << uidLine.split(QLatin1Char('\t'), QString::SkipEmptyParts); # | ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qobject.h:47: included_from: Included from here. /usr/include/qt5/QtCore/qiodevice.h:45: included_from: Included from here. /usr/include/qt5/QtCore/qfiledevice.h:43: included_from: Included from here. /usr/include/qt5/QtCore/qfile.h:44: included_from: Included from here. /usr/include/qt5/QtCore/QFile:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ProcessInfo.h:24: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ProcessInfo.cpp:21: included_from: Included from here. /usr/include/qt5/QtCore/qstring.h:602:9: note: declared here # 602 | SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED # | ^~~~~~~~~~~~~~ # 354| } while (!statusLine.isNull() && uidLine.isNull()); # 355| # 356|-> uidStrings << uidLine.split(QLatin1Char('\t'), QString::SkipEmptyParts); # 357| // Must be 5 entries: 'Uid: %d %d %d %d' and # 358| // uid string must be less than 5 chars (uint) Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Pty.cpp: scope_hint: In member function ‘void Konsole::Pty::sendData(const char*, int, const QTextCodec*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Pty.cpp:483:64: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 483 | qDebug() << "确认卸载终端!" << _bUninstall << endl; # | ^~~~ /usr/include/qt5/QtCore/qdebug.h:49: included_from: Included from here. /usr/include/qt5/QtCore/QtDebug:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Pty.cpp:43: included_from: Included from here. /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 481| /******** Modify by nt001000 renfeixiang 2020-05-27:修改 根据remove和purge卸载命令,发送信号不同参数值 End***************/ # 482| if (_bUninstall) { # 483|-> qDebug() << "确认卸载终端!" << _bUninstall << endl; # 484| connect(SessionManager::instance(), &SessionManager::sessionIdle, this, [ = ](bool isIdle) { # 485| //卸载完成,关闭所有终端窗口 Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Pty.cpp:497:62: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 497 | qDebug() << "不卸载终端!" << _bUninstall << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 495| }); # 496| } else { # 497|-> qDebug() << "不卸载终端!" << _bUninstall << endl; # 498| return; # 499| } Error: COMPILER_WARNING: deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ScreenWindow.cpp: scope_hint: In member function ‘getImage’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/ScreenWindow.cpp:64:43: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 # 64 | _windowBuffer = new Character[size]; # | ^ /usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here # 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) # | ^ # 62| delete[] _windowBuffer; # 63| _windowBufferSize = size; # 64|-> _windowBuffer = new Character[size]; # 65| _bufferNeedsUpdate = true; # 66| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Session.cpp: scope_hint: In member function ‘void Konsole::Session::done(int)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Session.cpp:745:29: warning[-Wdeprecated-declarations]: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead # 745 | infoText.sprintf("There was an error creating the child process for this terminal. \n" # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 746 | "Failed to execute child process \"%s\"(No such file or directory)!", _program.toUtf8().data()); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qhashfunctions.h:44: included_from: Included from here. /usr/include/qt5/QtCore/qlist.h:47: included_from: Included from here. /usr/include/qt5/QtCore/qstringlist.h:41: included_from: Included from here. /usr/include/qt5/QtCore/QStringList:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Session.h:28: included_from: Included from here. /usr/include/qt5/QtCore/qstring.h:390:14: note: declared here # 390 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); # | ^~~~~~~ # 743| QString infoText; # 744| if (exitStatus == -1){ # 745|-> infoText.sprintf("There was an error creating the child process for this terminal. \n" # 746| "Failed to execute child process \"%s\"(No such file or directory)!", _program.toUtf8().data()); # 747| message = "Session crashed."; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Session.cpp:750:29: warning[-Wdeprecated-declarations]: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead # 750 | infoText.sprintf("The child process exited normally with status %d.", exitStatus); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qstring.h:390:14: note: declared here # 390 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); # | ^~~~~~~ # 748| } # 749| else { # 750|-> infoText.sprintf("The child process exited normally with status %d.", exitStatus); # 751| message.sprintf("Session '%s' exited with status %d.", # 752| _nameTitle.toUtf8().data(), exitStatus); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Session.cpp:751:28: warning[-Wdeprecated-declarations]: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead # 751 | message.sprintf("Session '%s' exited with status %d.", # | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 752 | _nameTitle.toUtf8().data(), exitStatus); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qstring.h:390:14: note: declared here # 390 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); # | ^~~~~~~ # 749| else { # 750| infoText.sprintf("The child process exited normally with status %d.", exitStatus); # 751|-> message.sprintf("Session '%s' exited with status %d.", # 752| _nameTitle.toUtf8().data(), exitStatus); # 753| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘void Konsole::TerminalDisplay::setVTFont(const QFont&)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:345:24: warning[-Wdeprecated-declarations]: ‘QFont::ForceIntegerMetrics’ is deprecated # 345 | strategy |= QFont::ForceIntegerMetrics; # | ^~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtWidgets/qwidget.h:49: included_from: Included from here. /usr/include/qt5/QtWidgets/QWidget:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.h:27: included_from: Included from here. /usr/include/qt5/QtGui/qfont.h:85:9: note: declared here # 85 | ForceIntegerMetrics Q_DECL_ENUMERATOR_DEPRECATED = 0x0400, # | ^~~~~~~~~~~~~~~~~~~ # 343| # 344| // Konsole cannot handle non-integer font metrics # 345|-> strategy |= QFont::ForceIntegerMetrics; # 346| # 347| // In case the provided font doesn't have some specific characters it should Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:361:29: warning[-Wdeprecated-declarations]: ‘QFont::ForceIntegerMetrics’ is deprecated # 361 | strategy &= ~QFont::ForceIntegerMetrics; # | ^~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtGui/qfont.h:85:9: note: declared here # 85 | ForceIntegerMetrics Q_DECL_ENUMERATOR_DEPRECATED = 0x0400, # | ^~~~~~~~~~~~~~~~~~~ # 359| newFont = QFont(QStringLiteral("Monospace")); # 360| // Set style strategy without ForceIntegerMetrics for the font # 361|-> strategy &= ~QFont::ForceIntegerMetrics; # 362| newFont.setStyleHint(QFont::TypeWriter, QFont::StyleStrategy(strategy)); # 363| qDebug()<<"Font changed to "<<newFont.toString(); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘void Konsole::TerminalDisplay::drawTextFragment(QPainter&, const QRect&, const QString&, const Konsole::Character*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:881:49: warning[-Wdeprecated-declarations]: ‘const QBrush& QPalette::background() const’ is deprecated: Use QPalette::window() instead # 881 | if ( backgroundColor != palette().background().color() ) # | ~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qwidget.h:48: included_from: Included from here. /usr/include/qt5/QtGui/qpalette.h:149:26: note: declared here # 149 | inline const QBrush &background() const { return window(); } # | ^~~~~~~~~~ # 879| # 880| // draw background if different from the display's background color # 881|-> if ( backgroundColor != palette().background().color() ) # 882| drawBackground(painter,rect,backgroundColor, # 883| false /* do not use transparency */); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘void Konsole::TerminalDisplay::showResizeNotification()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:1295:74: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance # 1295 | _resizeWidget->setMinimumWidth(_resizeWidget->fontMetrics().width(label)); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/qt5/QtWidgets/qwidget.h:50: included_from: Included from here. /usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here # 106 | int width(const QString &, int len = -1) const; # | ^~~~~ # 1293| const QString label = tr("Size: XXX x XXX"); # 1294| _resizeWidget = new QLabel(label, this); # 1295|-> _resizeWidget->setMinimumWidth(_resizeWidget->fontMetrics().width(label)); # 1296| _resizeWidget->setMinimumHeight(_resizeWidget->sizeHint().height()); # 1297| _resizeWidget->setAlignment(Qt::AlignCenter); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘virtual void Konsole::TerminalDisplay::paintEvent(QPaintEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:1414:55: warning[-Wdeprecated-declarations]: ‘const QBrush& QPalette::background() const’ is deprecated: Use QPalette::window() instead # 1414 | drawBackground(paint, rect, palette().background().color(), true /* use opacity setting */); # | ~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtGui/qpalette.h:149:26: note: declared here # 149 | inline const QBrush &background() const { return window(); } # | ^~~~~~~~~~ # 1412| for (const QRect &rect : region) { # 1413| dirtyImageRegion += widgetToImage(rect); # 1414|-> drawBackground(paint, rect, palette().background().color(), true /* use opacity setting */); # 1415| } # 1416| Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘int Konsole::TerminalDisplay::textWidth(int, int, int) const’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:1611:23: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(QChar) const’ is deprecated: Use QFontMetrics::horizontalAdvance # 1611 | result += fm.width(_image[loc(startColumn + column, line)].character); # | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtGui/qfontmetrics.h:110:9: note: declared here # 110 | int width(QChar) const; # | ^~~~~ # 1609| int result = 0; # 1610| for (int column = 0; column < length; column++) { # 1611|-> result += fm.width(_image[loc(startColumn + column, line)].character); # 1612| } # 1613| return result; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘virtual void Konsole::TerminalDisplay::mousePressEvent(QMouseEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2118:33: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead # 2118 | else if ( ev->button() == Qt::MidButton ) # | ^~~~~~~~~ /usr/include/qt5/QtGui/qcolor.h:45: included_from: Included from here. /usr/include/qt5/QtGui/QColor:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.h:25: 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, # | ^~~~~~~~~ # 2116| } # 2117| } # 2118|-> else if ( ev->button() == Qt::MidButton ) # 2119| { # 2120| if ( _mouseMarks || (ev->modifiers() & Qt::ShiftModifier) ) Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘virtual void Konsole::TerminalDisplay::mouseMoveEvent(QMouseEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2212:29: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead # 2212 | if (ev->buttons() & Qt::MidButton) # | ^~~~~~~~~ /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, # | ^~~~~~~~~ # 2210| if (ev->buttons() & Qt::LeftButton) # 2211| button = 0; # 2212|-> if (ev->buttons() & Qt::MidButton) # 2213| button = 1; # 2214| if (ev->buttons() & Qt::RightButton) Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2254:27: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead # 2254 | if (ev->buttons() & Qt::MidButton) return; # | ^~~~~~~~~ /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, # | ^~~~~~~~~ # 2252| # 2253| // don't extend selection while pasting # 2254|-> if (ev->buttons() & Qt::MidButton) return; # 2255| # 2256| extendSelection( ev->pos() ); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘virtual void Konsole::TerminalDisplay::mouseReleaseEvent(QMouseEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2508:48: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead # 2508 | || ev->button() == Qt::MidButton) ) # | ^~~~~~~~~ /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, # | ^~~~~~~~~ # 2506| if ( !_mouseMarks && # 2507| ((ev->button() == Qt::RightButton && !(ev->modifiers() & Qt::ShiftModifier)) # 2508|-> || ev->button() == Qt::MidButton) ) # 2509| { # 2510| emit mouseSignal( ev->button() == Qt::MidButton ? 1 : 2, Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2510:43: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead # 2510 | emit mouseSignal( ev->button() == Qt::MidButton ? 1 : 2, # | ^~~~~~~~~ /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, # | ^~~~~~~~~ # 2508| || ev->button() == Qt::MidButton) ) # 2509| { # 2510|-> emit mouseSignal( ev->button() == Qt::MidButton ? 1 : 2, # 2511| charColumn + 1, # 2512| charLine + 1 +_scrollBar->value() -_scrollBar->maximum() , Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘virtual void Konsole::TerminalDisplay::wheelEvent(QWheelEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2677:24: warning[-Wdeprecated-declarations]: ‘Qt::Orientation QWheelEvent::orientation() const’ is deprecated: Use angleDelta() # 2677 | if (ev->orientation() != Qt::Vertical) # | ~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtGui/QKeyEvent:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Emulation.h:30: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/qtermwidget.h:26: included_from: Included from here. /usr/include/qt5/QtGui/qevent.h:222:28: note: declared here # 222 | inline Qt::Orientation orientation() const { return qt4O; } # | ^~~~~~~~~~~ # 2675| initKeyBoardSelection(); # 2676| # 2677|-> if (ev->orientation() != Qt::Vertical) # 2678| return; # 2679| Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2695:28: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() # 2695 | int key = ev->delta() > 0 ? Qt::Key_Up : Qt::Key_Down; # | ~~~~~~~~~^~ /usr/include/qt5/QtGui/qevent.h:219:16: note: declared here # 219 | inline int delta() const { return qt4D; } # | ^~~~~ # 2693| // of mouse wheel rotation. Mouse wheels typically move in steps of 15 degrees, # 2694| // giving a scroll of 3 lines # 2695|-> int key = ev->delta() > 0 ? Qt::Key_Up : Qt::Key_Down; # 2696| # 2697| // QWheelEvent::delta() gives rotation in eighths of a degree Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2698:37: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() # 2698 | int wheelDegrees = ev->delta() / 8; # | ~~~~~~~~~^~ /usr/include/qt5/QtGui/qevent.h:219:16: note: declared here # 219 | inline int delta() const { return qt4D; } # | ^~~~~ # 2696| # 2697| // QWheelEvent::delta() gives rotation in eighths of a degree # 2698|-> int wheelDegrees = ev->delta() / 8; # 2699| int linesToScroll = abs(wheelDegrees) / 5; # 2700| Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2710:38: warning[-Wdeprecated-declarations]: ‘QPoint QWheelEvent::pos() const’ is deprecated: Use position() # 2710 | getCharacterPosition( ev->pos() , charLine , charColumn ); # | ~~~~~~~^~ /usr/include/qt5/QtGui/qevent.h:225:19: note: declared here # 225 | inline QPoint pos() const { return p.toPoint(); } # | ^~~ # 2708| int charLine; # 2709| int charColumn; # 2710|-> getCharacterPosition( ev->pos() , charLine , charColumn ); # 2711| # 2712| emit mouseSignal( ev->delta() > 0 ? 4 : 5, Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2712:36: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() # 2712 | emit mouseSignal( ev->delta() > 0 ? 4 : 5, # | ~~~~~~~~~^~ /usr/include/qt5/QtGui/qevent.h:219:16: note: declared here # 219 | inline int delta() const { return qt4D; } # | ^~~~~ # 2710| getCharacterPosition( ev->pos() , charLine , charColumn ); # 2711| # 2712|-> emit mouseSignal( ev->delta() > 0 ? 4 : 5, # 2713| charColumn + 1, # 2714| charLine + 1 +_scrollBar->value() -_scrollBar->maximum() , Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘void Konsole::TerminalDisplay::checkAndInitSelectionState()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:2958:54: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 2958 | qDebug() << "checkAndInitSelectionState!" << endl; # | ^~~~ /usr/include/qt5/QtCore/QTextStream:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Emulation.h:33: included_from: Included from here. /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 2956| || _selStartLine != _screenWindow->cursorPosition().y() ) # 2957| { # 2958|-> qDebug() << "checkAndInitSelectionState!" << endl; # 2959| initKeyBoardSelection(); # 2960| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘virtual void Konsole::TerminalDisplay::keyPressEvent(QKeyEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:3066:61: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 3066 | qDebug() << "maxLineIndex: " << maxLineIndex << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 3064| _selEndLine++; # 3065| } # 3066|-> qDebug() << "maxLineIndex: " << maxLineIndex << endl; # 3067| qDebug() << "right: _selStartColumn" << _selStartColumn # 3068| << "_selStartLine" << _selStartLine Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘virtual QVariant Konsole::TerminalDisplay::inputMethodQuery(Qt::InputMethodQuery) const’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:3213:18: warning[-Wdeprecated-declarations]: ‘Qt::ImMicroFocus’ is deprecated # 3213 | case Qt::ImMicroFocus: # | ^~~~~~~~~~~~ /usr/include/qt5/QtCore/qnamespace.h:1424:9: note: declared here # 1424 | ImMicroFocus Q_DECL_ENUMERATOR_DEPRECATED = 0x2, # | ^~~~~~~~~~~~ # 3211| switch ( query ) # 3212| { # 3213|-> case Qt::ImMicroFocus: # 3214| return imageToWidget(QRect(cursorPos.x(),cursorPos.y(),1,1)); # 3215| break; Error: COMPILER_WARNING: deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:3456:38: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 # 3456 | _image = new Character[_imageSize+1]; # | ^ /usr/include/c++/14/new: scope_hint: In member function ‘updateImageSize’ /usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here # 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) # | ^ # 3454| // We over-commit one character so that we can be more relaxed in dealing with # 3455| // certain boundary conditions: _image[_imageSize] is a valid but unused position # 3456|-> _image = new Character[_imageSize+1]; # 3457| # 3458| clearImage(); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp: scope_hint: In member function ‘void Konsole::TerminalDisplay::doDrag()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:3571:29: warning[-Wdeprecated-declarations]: ‘Qt::DropAction QDrag::start(Qt::DropActions)’ is deprecated: Use QDrag::exec() instead # 3571 | dragInfo.dragObject->start(Qt::CopyAction); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/qt5/QtGui/QDrag:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/TerminalDisplay.cpp:46: included_from: Included from here. /usr/include/qt5/QtGui/qdrag.h:79:20: note: declared here # 79 | Qt::DropAction start(Qt::DropActions supportedActions = Qt::CopyAction); # | ^~~~~ # 3569| mimeData->setText(QApplication::clipboard()->text(QClipboard::Selection)); # 3570| dragInfo.dragObject->setMimeData(mimeData); # 3571|-> dragInfo.dragObject->start(Qt::CopyAction); # 3572| // Don't delete the QTextDrag object. Qt will delete it when it's done with it. # 3573| } Error: COMPILER_WARNING (CWE-563): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Session.h:33: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/Emulation.cpp:51: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/history/HistoryScrollNone.h: scope_hint: In member function ‘virtual void Konsole::HistoryScrollNone::addLine(Konsole::LineProperty)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/history/HistoryScrollNone.h:45:31: warning[-Wunused-parameter]: unused parameter ‘lineProperty’ # 45 | void addLine(LineProperty lineProperty = 0)override {} # | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ # 43| # 44| void addCells(const Character a[], int count) override; # 45|-> void addLine(LineProperty lineProperty = 0)override {} # 46| # 47| // Modify history (do nothing here) Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/qtermwidget.cpp: scope_hint: In member function ‘void QTermWidget::search(QString, bool, bool)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/qtermwidget.cpp:170:75: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 170 | qDebug() << "current backwardsPosition" << m_lastBackwardsPosition << endl; # | ^~~~ /usr/include/qt5/QtCore/qdebug.h:49: included_from: Included from here. /usr/include/qt5/QtCore/QtDebug:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/3rdparty/terminalwidget/lib/qtermwidget.cpp:21: included_from: Included from here. /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 168| qDebug() << "current selection starts at: " << startColumn << startLine; # 169| qDebug() << "current cursor position: " << m_impl->m_terminalDisplay->screenWindow()->cursorPosition(); # 170|-> qDebug() << "current backwardsPosition" << m_lastBackwardsPosition << endl; # 171| # 172| QString searchText(txt); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp: scope_hint: In static member function ‘static QString Utils::getElidedText(QFont, QString, int, Qt::TextElideMode)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp:107:32: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance # 107 | int width = fontWidth.width(text); # | ~~~~~~~~~~~~~~~^~~~~~ /usr/include/qt5/QtWidgets/qwidget.h:50: included_from: Included from here. /usr/include/qt5/QtWidgets/qdialog.h:44: included_from: Included from here. /usr/include/qt5/QtWidgets/QDialog:1: included_from: Included from here. /usr/include/dtk5/DWidget/dabstractdialog.h:8: included_from: Included from here. /usr/include/dtk5/DWidget/DAbstractDialog:1: included_from: Included from here. /usr/include/dtk5/DWidget/dsettingsdialog.h:12: included_from: Included from here. /usr/include/dtk5/DWidget/DSettingsDialog:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/settings/settings.h:8: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.h:8: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp:6: 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; # | ^~~~~ # 105| # 106| // 计算字符串宽度 # 107|-> int width = fontWidth.width(text); # 108| # 109| // 当字符串宽度大于最大宽度时进行转换 Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp: scope_hint: In static member function ‘static QString Utils::getRandString()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp:125:11: warning[-Wdeprecated-declarations]: ‘void qsrand(uint)’ is deprecated: use QRandomGenerator instead # 125 | qsrand(static_cast<uint>(t.msec() + t.second() * 1000)); # | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qsharedpointer.h:43: included_from: Included from here. /usr/include/qt5/QtCore/qpointer.h:43: included_from: Included from here. /usr/include/qt5/QtCore/QPointer:1: included_from: Included from here. /usr/include/dtk5/DWidget/dsettingsdialog.h:7: included_from: Included from here. /usr/include/qt5/QtCore/qglobal.h:1281:81: note: declared here # 1281 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") void qsrand(uint seed); # | ^~~~~~ # 123| QTime t; # 124| t = QTime::currentTime(); # 125|-> qsrand(static_cast<uint>(t.msec() + t.second() * 1000)); # 126| for (int i = 0; i < max; i++) { # 127| int len = qrand() % tmp.length(); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp:127:24: warning[-Wdeprecated-declarations]: ‘int qrand()’ is deprecated: use QRandomGenerator instead # 127 | int len = qrand() % tmp.length(); # | ~~~~~^~ /usr/include/qt5/QtCore/qglobal.h:1282:80: note: declared here # 1282 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") int qrand(); # | ^~~~~ # 125| qsrand(static_cast<uint>(t.msec() + t.second() * 1000)); # 126| for (int i = 0; i < max; i++) { # 127|-> int len = qrand() % tmp.length(); # 128| str[i] = tmp.at(len); # 129| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp: scope_hint: In static member function ‘static QStringList Utils::parseNestedQString(QString)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp:489:34: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QRegExp&, SplitBehavior) const’ is deprecated: Use split(const QRegularExpression &, Qt::SplitBehavior) variant instead # 489 | paraList.append(str.split(QRegExp(QStringLiteral("\\s+")), QString::SkipEmptyParts)); # | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qhashfunctions.h:44: included_from: Included from here. /usr/include/qt5/QtCore/qlist.h:47: included_from: Included from here. /usr/include/qt5/QtCore/qhash.h:46: included_from: Included from here. /usr/include/qt5/QtCore/qshareddata.h:46: included_from: Included from here. /usr/include/qt5/QtCore/qsharedpointer.h:45: included_from: Included from here. /usr/include/qt5/QtCore/qstring.h:619:17: note: declared here # 619 | QStringList split(const QRegExp &sep, SplitBehavior behavior) const; # | ^~~~~ # 487| } # 488| # 489|-> paraList.append(str.split(QRegExp(QStringLiteral("\\s+")), QString::SkipEmptyParts)); # 490| return paraList; # 491| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp:493:42: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QRegExp&, SplitBehavior) const’ is deprecated: Use split(const QRegularExpression &, Qt::SplitBehavior) variant instead # 493 | paraList.append(str.left(iLeft).split(QRegExp(QStringLiteral("\\s+")), QString::SkipEmptyParts)); # | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qstring.h:619:17: note: declared here # 619 | QStringList split(const QRegExp &sep, SplitBehavior behavior) const; # | ^~~~~ # 491| } # 492| # 493|-> paraList.append(str.left(iLeft).split(QRegExp(QStringLiteral("\\s+")), QString::SkipEmptyParts)); # 494| paraList.append(str.mid(iLeft + 1, iRight - iLeft - 1)); # 495| if (str.size() != iRight + 1) Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.cpp:496:65: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QRegExp&, SplitBehavior) const’ is deprecated: Use split(const QRegularExpression &, Qt::SplitBehavior) variant instead # 496 | paraList.append(str.right(str.size() - iRight - 1).split(QRegExp(QStringLiteral("\\s+")), QString::SkipEmptyParts)); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qstring.h:619:17: note: declared here # 619 | QStringList split(const QRegExp &sep, SplitBehavior behavior) const; # | ^~~~~ # 494| paraList.append(str.mid(iLeft + 1, iRight - iLeft - 1)); # 495| if (str.size() != iRight + 1) # 496|-> paraList.append(str.right(str.size() - iRight - 1).split(QRegExp(QStringLiteral("\\s+")), QString::SkipEmptyParts)); # 497| # 498| return paraList; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp: scope_hint: In member function ‘void CustomCommandOptDlg::initUITitle()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp:272:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 272 | 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/pagesearchbar.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/windowsmanager.h:18: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/service.h:10: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp:9: 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 # | ^~~~~~~~~~~~~~~~~~ # 270| DPalette palette = m_titleText->palette(); # 271| QColor color; # 272|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 273| color = QColor::fromRgb(192, 198, 212, 255); # 274| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp:272:61: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 272 | 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 # | ^~~~~~~~~~~~~~~~~~ # 270| DPalette palette = m_titleText->palette(); # 271| QColor color; # 272|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 273| color = QColor::fromRgb(192, 198, 212, 255); # 274| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp: scope_hint: In member function ‘void CustomCommandOptDlg::initTitleConnections()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp:306:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 306 | connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &CustomCommandOptDlg::slotThemeTypeChanged); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 304| connect(m_closeButton, &DWindowCloseButton::clicked, this, &CustomCommandOptDlg::slotCloseButtonClicked); # 305| // 字体颜色随主题变化变化 # 306|-> connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &CustomCommandOptDlg::slotThemeTypeChanged); # 307| } # 308| Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp: scope_hint: In member function ‘void CustomCommandOptDlg::slotThemeTypeChanged(Dtk::Gui::DGuiApplicationHelper::ColorType)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp:318:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 318 | 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 # | ^~~~~~~~~~~~~~~~~~ # 316| DPalette palette = m_titleText->palette(); # 317| QColor color; # 318|-> if (DApplicationHelper::DarkType == themeType) # 319| color = QColor::fromRgb(192, 198, 212, 255); # 320| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp: scope_hint: In member function ‘void CustomCommandOptDlg::addCancelConfirmButtons()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandoptdlg.cpp:494:39: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 494 | DPalette pa = DApplicationHelper::instance()->palette(verticalLine); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 492| # 493| DVerticalLine *verticalLine = new DVerticalLine(this); # 494|-> DPalette pa = DApplicationHelper::instance()->palette(verticalLine); # 495| QColor splitColor = pa.color(DPalette::ItemBackground); # 496| pa.setBrush(DPalette::Background, splitColor); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandsearchrstpanel.cpp: scope_hint: In member function ‘void CustomCommandSearchRstPanel::initUI()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandsearchrstpanel.cpp:49:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 49 | 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/customcommand/customcommandsearchrstpanel.cpp:10: included_from: Included from here. /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 47| DPalette palette = m_label->palette(); # 48| QColor color; # 49|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 50| color = QColor::fromRgb(192, 198, 212, 102); # 51| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandsearchrstpanel.cpp:49:61: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 49 | 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 # | ^~~~~~~~~~~~~~~~~~ # 47| DPalette palette = m_label->palette(); # 48| QColor color; # 49|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 50| color = QColor::fromRgb(192, 198, 212, 102); # 51| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandsearchrstpanel.cpp:79:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 79 | connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &CustomCommandSearchRstPanel::handleThemeTypeChanged); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 77| connect(m_backButton, &DIconButton::clicked, this, &CustomCommandSearchRstPanel::showCustomCommandPanel); # 78| // 字体颜色随主题变化变化 # 79|-> connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &CustomCommandSearchRstPanel::handleThemeTypeChanged); # 80| # 81| connect(m_rebackButton, &IconButton::focusOut, this, &CustomCommandSearchRstPanel::handleIconButtonFocusOut); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandsearchrstpanel.cpp: scope_hint: In member function ‘void CustomCommandSearchRstPanel::handleThemeTypeChanged(Dtk::Gui::DGuiApplicationHelper::ColorType)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/customcommand/customcommandsearchrstpanel.cpp:90:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 90 | 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 # | ^~~~~~~~~~~~~~~~~~ # 88| DPalette palette = m_label->palette(); # 89| QColor color; # 90|-> if (DApplicationHelper::DarkType == themeType) # 91| color = QColor::fromRgb(192, 198, 212, 102); # 92| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/encodeplugin/encodelistview.cpp: scope_hint: In member function ‘virtual void EncodeDelegate::paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/encodeplugin/encodelistview.cpp:275:47: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 275 | DPalette pa = DApplicationHelper::instance()->palette(m_parentView); # | ^~~~~~~~ /usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/pagesearchbar.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/encodeplugin/encodelistview.h:9: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/encodeplugin/encodelistview.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 # | ^~~~~~~~~~~~~~~~~~ # 273| if (option.state & QStyle::State_MouseOver) { # 274| /*** mod begin by ut001121 zhangmeng 20200729 鼠标悬浮在编码插件时使用突出背景处理 修复BUG40078***/ # 275|-> DPalette pa = DApplicationHelper::instance()->palette(m_parentView); # 276| DStyleHelper styleHelper; # 277| QColor fillColor = styleHelper.getColor(static_cast<const QStyleOption *>(&option), pa, DPalette::ObviousBackground); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/encodeplugin/encodelistview.cpp:282:47: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 282 | DPalette pa = DApplicationHelper::instance()->palette(m_parentView); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 280| painter->fillPath(path, fillColor); # 281| } else { # 282|-> DPalette pa = DApplicationHelper::instance()->palette(m_parentView); # 283| DStyleHelper styleHelper; # 284| QColor fillColor = styleHelper.getColor(static_cast<const QStyleOption *>(&option), pa, DPalette::ItemBackground); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/encodeplugin/encodelistview.cpp:311:48: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 311 | DPalette pax = DApplicationHelper::instance()->palette(m_parentView); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 309| if ((option.state & QStyle::State_Selected) && (focusReason != INVALID_FOCUS_REASON)) { # 310| QPen framePen; # 311|-> DPalette pax = DApplicationHelper::instance()->palette(m_parentView); # 312| if (option.state & QStyle::State_Selected) { # 313| painter->setOpacity(1); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/main.cpp: scope_hint: In function ‘int main(int, char**)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/main.cpp:41:34: warning[-Wdeprecated-declarations]: ‘Dtk::Widget::DApplicationSettings::DApplicationSettings(QObject*)’ is deprecated: The feature has been moved to DGuiApplicationHelper, We can disable it by setting DGuiApplicationHelper::DontSaveApplicationTheme enum with setAttribute. # 41 | DApplicationSettings set(&app); # | ^ /usr/include/dtk5/DWidget/DApplicationSettings:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/main.cpp:16: included_from: Included from here. /usr/include/dtk5/DWidget/dapplicationsettings.h:21:14: note: declared here # 21 | explicit DApplicationSettings(QObject *parent = nullptr); # | ^~~~~~~~~~~~~~~~~~~~ # 39| TerminalApplication app(argc, argv); # 40| app.setStartTime(startTime); # 41|-> DApplicationSettings set(&app); # 42| # 43| // 系统日志 Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘bool MainWindow::hasRunningProcesses()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:461:106: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 461 | qInfo() << "here are processes running in this terminal tab... " << tabPage->identifier() << endl; # | ^~~~ /usr/include/qt5/QtCore/qdebug.h:49: included_from: Included from here. /usr/include/qt5/QtCore/QDebug:1: included_from: Included from here. /usr/include/dtk5/DGui/dpalette.h:10: 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/dtk5/DWidget/DStyle:1: included_from: Included from here. /usr/include/dtk5/DWidget/diconbutton.h:10: included_from: Included from here. /usr/include/dtk5/DWidget/DIconButton:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/pagesearchbar.h:10: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:6: included_from: Included from here. /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 459| if (tabPage->runningTerminalCount() != 0) { # 460| /******** Modify by nt001000 renfeixiang 2020-05-28:修改 判断当前tab中是否有其它分屏正在执行 End***************/ # 461|-> qInfo() << "here are processes running in this terminal tab... " << tabPage->identifier() << endl; # 462| return true; # 463| } else { Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:464:100: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 464 | qInfo() << "no processes running in this terminal tab... " << tabPage->identifier() << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 462| return true; # 463| } else { # 464|-> qInfo() << "no processes running in this terminal tab... " << tabPage->identifier() << endl; # 465| } # 466| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘virtual void MainWindow::closeEvent(QCloseEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:863:53: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 863 | qInfo() << "isMinimized........... " << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 861| // 如果不能马上关闭,并且还在没有最小化. # 862| if ((runningCount != 0) && isMinimized()) { # 863|-> qInfo() << "isMinimized........... " << endl; # 864| setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive); # 865| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘QSize MainWindow::halfScreenSize()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:932:47: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 932 | int w = qApp->desktop()->availableGeometry().width(); /usr/include/qt5/QtWidgets/QDesktopWidget:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:38: included_from: Included from here. /usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here # 88 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~~~~ # 930| QSize MainWindow::halfScreenSize() # 931| { # 932|-> int w = qApp->desktop()->availableGeometry().width(); # 933| int h = qApp->desktop()->availableGeometry().height(); # 934| Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:933:47: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 933 | int h = qApp->desktop()->availableGeometry().height(); /usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here # 88 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~~~~ # 931| { # 932| int w = qApp->desktop()->availableGeometry().width(); # 933|-> int h = qApp->desktop()->availableGeometry().height(); # 934| # 935| QSize size; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::slotShortcutSwitchActivated()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:1072:76: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 1072 | qInfo() << "i - 1 > tabcount" << i - 1 << m_tabbar->count() << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 1070| # 1071| if (i - 1 >= m_tabbar->count()) { # 1072|-> qInfo() << "i - 1 > tabcount" << i - 1 << m_tabbar->count() << endl; # 1073| return; # 1074| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:1076:40: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 1076 | qInfo() << "index" << i - 1 << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 1074| } # 1075| # 1076|-> qInfo() << "index" << i - 1 << endl; # 1077| m_tabbar->setCurrentIndex(i - 1); # 1078| return; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘void MainWindow::onCreateNewWindow(QString)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:1399:26: warning[-Wdeprecated-declarations]: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead # 1399 | process.startDetached(QCoreApplication::applicationFilePath()); # | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/QtCore:170: included_from: Included from here. /usr/include/dtk5/DCore/LogManager.h:9: included_from: Included from here. /usr/include/dtk5/DCore/DLog:3: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:34: included_from: Included from here. /usr/include/qt5/QtCore/qprocess.h:280:17: note: declared here # 280 | static bool startDetached(const QString &command); # | ^~~~~~~~~~~~~ # 1397| // 调用一个新的进程,开启终端 # 1398| QProcess process; # 1399|-> process.startDetached(QCoreApplication::applicationFilePath()); # 1400| } # 1401| Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘void QuakeWindow::slotWorkAreaResized()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2420:79: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2420 | qInfo() << "workAreaResized" << QApplication::desktop()->availableGeometry(); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here # 88 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~~~~ # 2418| void QuakeWindow::slotWorkAreaResized() # 2419| { # 2420|-> qInfo() << "workAreaResized" << QApplication::desktop()->availableGeometry(); # 2421| /******** Modify by nt001000 renfeixiang 2020-05-20:修改成只需要设置雷神窗口宽度,根据字体高度设置雷神最小高度 Begin***************/ # 2422| setMinimumWidth(QApplication::desktop()->availableGeometry().width()); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2422:63: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2422 | setMinimumWidth(QApplication::desktop()->availableGeometry().width()); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here # 88 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~~~~ # 2420| qInfo() << "workAreaResized" << QApplication::desktop()->availableGeometry(); # 2421| /******** Modify by nt001000 renfeixiang 2020-05-20:修改成只需要设置雷神窗口宽度,根据字体高度设置雷神最小高度 Begin***************/ # 2422|-> setMinimumWidth(QApplication::desktop()->availableGeometry().width()); # 2423| setWindowMinHeightForFont(); # 2424| /******** Add by ut001000 renfeixiang 2020-08-07:workAreaResized时改变大小,bug#41436***************/ Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2427:52: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2427 | move(QApplication::desktop()->availableGeometry().x(), QApplication::desktop()->availableGeometry().y()); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here # 88 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~~~~ # 2425| updateMinHeight(); # 2426| /******** Modify by nt001000 renfeixiang 2020-05-20:修改成只需要设置雷神窗口宽度,根据字体高度设置雷神最小高度 End***************/ # 2427|-> move(QApplication::desktop()->availableGeometry().x(), QApplication::desktop()->availableGeometry().y()); # 2428| qInfo() << "size" << size(); # 2429| setFixedWidth(QApplication::desktop()->availableGeometry().width()); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2427:102: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2427 | move(QApplication::desktop()->availableGeometry().x(), QApplication::desktop()->availableGeometry().y()); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here # 88 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~~~~ # 2425| updateMinHeight(); # 2426| /******** Modify by nt001000 renfeixiang 2020-05-20:修改成只需要设置雷神窗口宽度,根据字体高度设置雷神最小高度 End***************/ # 2427|-> move(QApplication::desktop()->availableGeometry().x(), QApplication::desktop()->availableGeometry().y()); # 2428| qInfo() << "size" << size(); # 2429| setFixedWidth(QApplication::desktop()->availableGeometry().width()); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2429:61: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2429 | setFixedWidth(QApplication::desktop()->availableGeometry().width()); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here # 88 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~~~~ # 2427| move(QApplication::desktop()->availableGeometry().x(), QApplication::desktop()->availableGeometry().y()); # 2428| qInfo() << "size" << size(); # 2429|-> setFixedWidth(QApplication::desktop()->availableGeometry().width()); # 2430| return ; # 2431| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘virtual void QuakeWindow::initWindowAttribute()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2439:53: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2439 | QRect screenRect = desktopWidget->screenGeometry(); //获取设备屏幕大小 # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here # 79 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~ # 2437| //QRect deskRect = QApplication::desktop()->availableGeometry();//获取可用桌面大小 # 2438| QDesktopWidget *desktopWidget = QApplication::desktop(); # 2439|-> QRect screenRect = desktopWidget->screenGeometry(); //获取设备屏幕大小 # 2440| Qt::WindowFlags windowFlags = this->windowFlags(); # 2441| setWindowFlags(windowFlags | Qt::WindowStaysOnTopHint/* | Qt::FramelessWindowHint | Qt::BypassWindowManagerHint*/ /*| Qt::Dialog*/); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2466:45: warning[-Wdeprecated-declarations]: ‘void QDesktopWidget::workAreaResized(int)’ is deprecated: Use QScreen::availableGeometryChanged() # 2466 | connect(desktopWidget, &QDesktopWidget::workAreaResized, this, &QuakeWindow::slotWorkAreaResized); # | ^~~~~~~~~~~~~~~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:99:69: note: declared here # 99 | QT_DEPRECATED_X("Use QScreen::availableGeometryChanged()") void workAreaResized(int); # | ^~~~~~~~~~~~~~~ # 2464| } # 2465| setFixedWidth(w); # 2466|-> connect(desktopWidget, &QDesktopWidget::workAreaResized, this, &QuakeWindow::slotWorkAreaResized); # 2467| # 2468| int saveHeight = getQuakeHeight(); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘virtual QPoint QuakeWindow::calculateShortcutsPreviewPoint()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2502:60: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2502 | QRect rect = QApplication::desktop()->availableGeometry(); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here # 88 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~~~~ # 2500| { # 2501| //--added by qinyaning(nyq) to solve the problem of can't show center--// # 2502|-> QRect rect = QApplication::desktop()->availableGeometry(); # 2503| //---------------------------------------------------------------------// # 2504| return QPoint(rect.x() + rect.width() / 2, rect.y() + rect.height() / 2); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘int QuakeWindow::getQuakeAnimationTime()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2653:53: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2653 | QRect screenRect = desktopWidget->screenGeometry(); //获取设备屏幕大小 # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here # 79 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~ # 2651| { # 2652| QDesktopWidget *desktopWidget = QApplication::desktop(); # 2653|-> QRect screenRect = desktopWidget->screenGeometry(); //获取设备屏幕大小 # 2654| //quakeAnimationBaseTime+quakeAnimationHighDistributionTotalTime的时间是雷神窗口最大高度时动画效果时间 # 2655| //动画时间计算方法:3quakeAnimationBaseTime加上(quakeAnimationHighDistributionTotalTime乘以当前雷神高度除以雷神最大高度)所得时间,为各个高度时动画时间 Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘int QuakeWindow::getQuakeHeight()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2823:55: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2823 | int screenHeight = qApp->desktop()->screenGeometry().height(); /usr/include/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here # 79 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~ # 2821| int QuakeWindow::getQuakeHeight() # 2822| { # 2823|-> int screenHeight = qApp->desktop()->screenGeometry().height(); # 2824| int minHeight = screenHeight * 1 / 3; # 2825| return m_winInfoConfig->value(CONFIG_QUAKE_WINDOW_HEIGHT, minHeight).toInt(); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp: scope_hint: In member function ‘void QuakeWindow::switchEnableResize(bool)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/main/mainwindow.cpp:2840:57: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens() # 2840 | QRect screenRect = desktopWidget->screenGeometry(); //获取设备屏幕大小 # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here # 79 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const; # | ^~~~~~~~~~~~~~ # 2838| // 设置最小高度和最大高度,解放fixSize设置的不允许拉伸 # 2839| QDesktopWidget *desktopWidget = QApplication::desktop(); # 2840|-> QRect screenRect = desktopWidget->screenGeometry(); //获取设备屏幕大小 # 2841| //Add by ut001000 renfeixiang 2020-11-16 修改成使用写好的设置最小值的函数 # 2842| updateMinHeight(); 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-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementsearchpanel.cpp: scope_hint: In member function ‘void RemoteManagementSearchPanel::initUI()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementsearchpanel.cpp:44:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 44 | 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/remotemanagementsearchpanel.cpp:8: 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 # | ^~~~~~~~~~~~~~~~~~ # 42| DPalette palette = m_label->palette(); # 43| QColor color; # 44|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 45| color = QColor::fromRgb(192, 198, 212, 102); # 46| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementsearchpanel.cpp:44:61: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 44 | 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 # | ^~~~~~~~~~~~~~~~~~ # 42| DPalette palette = m_label->palette(); # 43| QColor color; # 44|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 45| color = QColor::fromRgb(192, 198, 212, 102); # 46| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementsearchpanel.cpp:76:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 76 | connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &RemoteManagementSearchPanel::handleThemeTypeChanged); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 74| connect(m_listWidget, &ListView::focusOut, this, &RemoteManagementSearchPanel::handleListViewFocusOut); # 75| // 字体颜色随主题变化变化 # 76|-> connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &RemoteManagementSearchPanel::handleThemeTypeChanged); # 77| } # 78| Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementsearchpanel.cpp: scope_hint: In member function ‘void RemoteManagementSearchPanel::handleThemeTypeChanged(Dtk::Gui::DGuiApplicationHelper::ColorType)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/remotemanagementsearchpanel.cpp:99:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 99 | 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 # | ^~~~~~~~~~~~~~~~~~ # 97| DPalette palette = m_label->palette(); # 98| QColor color; # 99|-> if (DApplicationHelper::DarkType == themeType) # 100| color = QColor::fromRgb(192, 198, 212, 102); # 101| else 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: CLANG_WARNING: deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigmanager.cpp:186:70: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'pServerConfig' # 184| ServerConfig *pServerConfig = new ServerConfig(); # 185| if (strList.count() < 3) { # 186|-> qInfo() << __FUNCTION__ << serverName << strList.count() << "error"; # 187| continue; # 188| } Error: CLANG_WARNING: deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigmanager.cpp:508:14: warning[core.NullDereference]: Access to field 'manager' results in a dereference of a null pointer (loaded from variable 'reback') # 506| Q_ASSERT(reback); # 507| if (NULL == unused) { # 508|-> emit reback->manager->lookupSerceats(reback->key, ""); # 509| return; # 510| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigoptdlg.cpp: scope_hint: In member function ‘void ServerConfigOptDlg::initUI()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigoptdlg.cpp:103:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 103 | 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/remotemanage/serverconfigoptdlg.h:19: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigoptdlg.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 # | ^~~~~~~~~~~~~~~~~~ # 101| DPalette palette = m_titleLabel->palette(); # 102| QColor color; # 103|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 104| color = QColor::fromRgb(192, 198, 212, 255); # 105| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigoptdlg.cpp:103:61: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 103 | 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 # | ^~~~~~~~~~~~~~~~~~ # 101| DPalette palette = m_titleLabel->palette(); # 102| QColor color; # 103|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 104| color = QColor::fromRgb(192, 198, 212, 255); # 105| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigoptdlg.cpp:233:39: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 233 | 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 # | ^~~~~~~~~~~~~~~~~~ # 231| Utils::setSpaceInWord(pCancelButton); # 232| Utils::setSpaceInWord(pAddSaveButton); # 233|-> DPalette pa = DApplicationHelper::instance()->palette(pAddSaveButton); # 234| QBrush brush = pa.textLively().color(); # 235| pa.setBrush(DPalette::ButtonText, brush); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigoptdlg.cpp:253:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 253 | connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &ServerConfigOptDlg::handleThemeTypeChanged); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 251| connect(pAddSaveButton, &DPushButton::clicked, this, &ServerConfigOptDlg::slotAddSaveButtonClicked); # 252| // 字体颜色随主题变化变化 # 253|-> connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &ServerConfigOptDlg::handleThemeTypeChanged); # 254| # 255| // 设置焦点顺序 Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigoptdlg.cpp: scope_hint: In member function ‘void ServerConfigOptDlg::handleThemeTypeChanged(Dtk::Gui::DGuiApplicationHelper::ColorType)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/remotemanage/serverconfigoptdlg.cpp:264:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 264 | 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 # | ^~~~~~~~~~~~~~~~~~ # 262| //palette.setBrush(QPalette::WindowText, palette.color(DPalette::TextTitle)); # 263| QColor color; # 264|-> if (DApplicationHelper::DarkType == themeType) # 265| color = QColor::fromRgb(192, 198, 212, 255); # 266| else Error: COMPILER_WARNING: deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/settings/settings.cpp: scope_hint: In static member function ‘static void Settings::addShellOption()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/settings/settings.cpp:255:24: warning[-Wrange-loop-construct]: loop variable ‘key’ creates a copy from type ‘const QString’ # 255 | for (const QString key : shellsMap.keys()) # | ^~~ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/settings/settings.cpp:255:24: note: use reference type to prevent copying # 255 | for (const QString key : shellsMap.keys()) # | ^~~ # | & # 253| keysList << DEFAULT_SHELL; # 254| // 数据转换 # 255|-> for (const QString key : shellsMap.keys()) # 256| keysList << key; # 257| g_shellConfigCombox->addItems(keysList); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp: scope_hint: In member function ‘virtual void ColorPushButton::paintEvent(QPaintEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp:78:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 78 | if (DApplicationHelper::LightType == 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/customthemesettingdialog.cpp:18: 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 # | ^~~~~~~~~~~~~~~~~~ # 76| # 77| QColor borderColor; # 78|-> if (DApplicationHelper::LightType == DApplicationHelper::instance()->themeType()) # 79| borderColor = QColor::fromRgb(0, 0, 0, static_cast<int>(255 * 0.05)); # 80| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp:78:62: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 78 | if (DApplicationHelper::LightType == 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 # | ^~~~~~~~~~~~~~~~~~ # 76| # 77| QColor borderColor; # 78|-> if (DApplicationHelper::LightType == DApplicationHelper::instance()->themeType()) # 79| borderColor = QColor::fromRgb(0, 0, 0, static_cast<int>(255 * 0.05)); # 80| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp:104:44: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 104 | DPalette pax = DApplicationHelper::instance()->palette(this); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 102| //绘画边框 # 103| QPen framePen; # 104|-> DPalette pax = DApplicationHelper::instance()->palette(this); # 105| //获取活动色 # 106| framePen = QPen(pax.color(DPalette::Highlight), 2); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp: scope_hint: In member function ‘void CustomThemeSettingDialog::initUITitle()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp:196:29: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 196 | 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 # | ^~~~~~~~~~~~~~~~~~ # 194| DPalette palette = m_titleText->palette(); # 195| QColor color; # 196|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 197| color = QColor::fromRgb(192, 198, 212, 255); # 198| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp:196:61: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 196 | 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 # | ^~~~~~~~~~~~~~~~~~ # 194| DPalette palette = m_titleText->palette(); # 195| QColor color; # 196|-> if (DApplicationHelper::DarkType == DApplicationHelper::instance()->themeType()) # 197| color = QColor::fromRgb(192, 198, 212, 255); # 198| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp: scope_hint: In member function ‘void CustomThemeSettingDialog::initTitleConnections()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp:383:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 383 | connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, m_titleText, [ = ](DGuiApplicationHelper::ColorType themeType) { # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 381| }); # 382| // 字体颜色随主题变化变化 # 383|-> connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, m_titleText, [ = ](DGuiApplicationHelper::ColorType themeType) { # 384| DPalette palette = m_titleText->palette(); # 385| QColor color; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp: scope_hint: In lambda function deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp:386:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 386 | 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 # | ^~~~~~~~~~~~~~~~~~ # 384| DPalette palette = m_titleText->palette(); # 385| QColor color; # 386|-> if (DApplicationHelper::DarkType == themeType) # 387| color = QColor::fromRgb(192, 198, 212, 255); # 388| else Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp: scope_hint: In member function ‘void CustomThemeSettingDialog::addCancelConfirmButtons()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/customthemesettingdialog.cpp:428:39: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 428 | DPalette pa = DApplicationHelper::instance()->palette(verticalLine); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 426| # 427| DVerticalLine *verticalLine = new DVerticalLine(this); # 428|-> DPalette pa = DApplicationHelper::instance()->palette(verticalLine); # 429| QColor splitColor = pa.color(DPalette::ItemBackground); # 430| pa.setBrush(DPalette::Background, splitColor); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/focusframe.cpp: scope_hint: In member function ‘virtual void FocusFrame::paintEvent(QPaintEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/focusframe.cpp:33:39: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 33 | DPalette pa = DApplicationHelper::instance()->palette(this); # | ^~~~~~~~ /usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/focusframe.cpp:9: 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 # | ^~~~~~~~~~~~~~~~~~ # 31| # 32| QPainter painter(this); # 33|-> DPalette pa = DApplicationHelper::instance()->palette(this); # 34| DPalette::ColorType backgroundType = static_cast<DPalette::ColorType>(getBackgroudColorRole()); # 35| // 去锯齿 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-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp: scope_hint: In member function ‘void ItemWidget::initConnections()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:365:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 365 | connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &ItemWidget::slotThemeChange); # | ^~~~~~~~ /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/itemwidget.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 # | ^~~~~~~~~~~~~~~~~~ # 363| { # 364| // 颜色随主题变化 # 365|-> connect(DApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &ItemWidget::slotThemeChange); # 366| // 删除键被点击 # 367| connect(m_deleteButton, &DIconButton::clicked, this, [this] { Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp: scope_hint: In member function ‘void ItemWidget::setFontColor(Dtk::Widget::DLabel*, ItemTextColor)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.cpp:532:48: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 532 | DPalette fontPalette = DApplicationHelper::instance()->palette(label); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 530| void ItemWidget::setFontColor(DLabel *label, ItemTextColor colorType) # 531| { # 532|-> DPalette fontPalette = DApplicationHelper::instance()->palette(label); # 533| QColor color = getColor(colorType); # 534| if (color.isValid()) { 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-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp: scope_hint: In member function ‘int ListView::getWidgetIndex(ItemWidget*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp:674:10: warning[-Wdeprecated-declarations]: ‘void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList<ItemWidget*>::iterator; LessThan = bool (*)(ItemWidget*, ItemWidget*)]’ is deprecated: Use std::sort # 674 | qSort(m_itemList.begin(), m_itemList.end(), comparator); # | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qlist.h:43: included_from: Included from here. /usr/include/qt5/QtCore/qvariant.h:45: included_from: Included from here. /usr/include/qt5/QtCore/qmetaobject.h:45: 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/dframe.h:8: included_from: Included from here. /usr/include/dtk5/DWidget/DFrame:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/focusframe.h:17: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/itemwidget.h:18: 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/views/listview.cpp:7: included_from: Included from here. /usr/include/qt5/QtCore/qalgorithms.h:181:46: note: declared here # 181 | QT_DEPRECATED_X("Use std::sort") inline void qSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan) # | ^~~~~ # 672| int ListView::getWidgetIndex(ItemWidget *itemWidget) # 673| { # 674|-> qSort(m_itemList.begin(), m_itemList.end(), comparator); # 675| // 从0开始 # 676| int index = 0; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp: scope_hint: In member function ‘void ListView::setFocusFromeIndex(int, ListFocusType)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp:704:41: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 704 | qInfo() << "index:" << index << endl; # | ^~~~ /usr/include/qt5/QtCore/qdebug.h:49: included_from: Included from here. /usr/include/qt5/QtCore/QDebug:1: included_from: Included from here. /usr/include/dtk5/DGui/dpalette.h:10: included_from: Included from here. /usr/include/dtk5/DGui/DPalette:1: included_from: Included from here. /usr/include/dtk5/DWidget/dframe.h:9: included_from: Included from here. /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 702| index = this->count() - 1; # 703| else # 704|-> qInfo() << "index:" << index << endl; # 705| # 706| qInfo() << "focus index:" << index << endl; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp:706:43: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 706 | qInfo() << "focus index:" << index << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 704| qInfo() << "index:" << index << endl; # 705| # 706|-> qInfo() << "focus index:" << index << endl; # 707| # 708| // index >= 0 < 最大数量 Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/listview.cpp:754:72: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 754 | qInfo() << "m_scrollPostion" << m_scrollPostion << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 752| } else { # 753| m_scrollPostion = verticalScrollBar()->value(); # 754|-> qInfo() << "m_scrollPostion" << m_scrollPostion << endl; # 755| } # 756| } 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/tabbar.cpp: scope_hint: In member function ‘int TabBar::insertTab(const int&, const QString&, const QString&)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp:230:84: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 230 | qInfo() << "insertTab at index: " << index << " with id::" << tabIdentifier << endl; # | ^~~~ /usr/include/qt5/QtCore/qdebug.h:49: included_from: Included from here. /usr/include/qt5/QtCore/QDebug:1: included_from: Included from here. /usr/include/dtk5/DGui/dpalette.h:10: included_from: Included from here. /usr/include/dtk5/DGui/DPalette:1: included_from: Included from here. /usr/include/dtk5/DWidget/dapplication.h:10: included_from: Included from here. /usr/include/dtk5/DWidget/DApplication:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/common/utils.h:13: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp:7: included_from: Included from here. /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 228| int TabBar::insertTab(const int &index, const QString &tabIdentifier, const QString &tabName) # 229| { # 230|-> qInfo() << "insertTab at index: " << index << " with id::" << tabIdentifier << endl; # 231| int insertIndex = DTabBar::insertTab(index, tabName); # 232| setTabData(insertIndex, QVariant::fromValue(tabIdentifier)); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp: scope_hint: In member function ‘bool TabBar::handleRightButtonClick(QMouseEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp:472:50: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 472 | qInfo() << "currIndex" << m_rightClickTab << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 470| } # 471| } # 472|-> qInfo() << "currIndex" << m_rightClickTab << endl; # 473| # 474| // 弹出tab标签的右键菜单 Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp: scope_hint: In member function ‘void TabBar::handleTabMoved(int, int)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp:694:33: warning[-Wdeprecated-declarations]: ‘void QList<T>::swap(int, int) [with T = QString]’ is deprecated: Use QList<T>::swapItemsAt() # 694 | m_tabIdentifierList.swap(fromIndex, toIndex); # | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qobject.h:49: included_from: Included from here. /usr/include/qt5/QtWidgets/qwidget.h:45: 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-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.h:9: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp:6: included_from: Included from here. /usr/include/qt5/QtCore/qlist.h:225:10: note: declared here # 225 | void swap(int i, int j) { swapItemsAt(i, j); } # | ^~~~ # 692| && (fromIndex >= 0) # 693| && (toIndex >= 0)) { # 694|-> m_tabIdentifierList.swap(fromIndex, toIndex); # 695| } # 696| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp: scope_hint: In member function ‘void TabBar::handleTabDroped(int, Qt::DropAction, QObject*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp:807:78: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 807 | qInfo() << "handleTabDroped index:" << index << ", target:" << target << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 805| Q_UNUSED(dropAction) # 806| # 807|-> qInfo() << "handleTabDroped index:" << index << ", target:" << target << endl; # 808| TabBar *tabbar = qobject_cast<TabBar *>(target); # 809| Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp:812:53: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 812 | qInfo() << "tabbar == nullptr " << index << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 810| //拖出的标签--需要新建窗口 # 811| if (nullptr == tabbar) { # 812|-> qInfo() << "tabbar == nullptr " << index << endl; # 813| MainWindow *window = static_cast<MainWindow *>(this->window()); # 814| //窗口不为雷神模式才允许移动 Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/tabbar.cpp:822:53: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl # 822 | qInfo() << "tabbar != nullptr " << index << endl; # | ^~~~ /usr/include/qt5/QtCore/qtextstream.h:293:75: note: declared here # 293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s); # | ^~~~ # 820| } else { # 821| //拖入的标签--需要关闭拖入窗口的标签页 # 822|-> qInfo() << "tabbar != nullptr " << index << endl; # 823| closeTab(index); # 824| } Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termcommandlinkbutton.cpp: scope_hint: In constructor ‘TermCommandLinkButton::TermCommandLinkButton(QWidget*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termcommandlinkbutton.cpp:18:44: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 18 | DPalette palette = DApplicationHelper::instance()->palette(this); # | ^~~~~~~~ /usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termcommandlinkbutton.cpp:9: 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 # | ^~~~~~~~~~~~~~~~~~ # 16| { # 17| Utils::set_Object_Name(this); # 18|-> DPalette palette = DApplicationHelper::instance()->palette(this); # 19| palette.setColor(DPalette::ButtonText, palette.color(DPalette::TextWarning)); # 20| this->setPalette(palette); 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::initConnections()’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:177:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 177 | connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &TermWidget::onThemeChanged); # | ^~~~~~~~ /usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/pagesearchbar.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.h:10: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:5: included_from: Included from here. /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 175| // 主题变化只能从公共方法发出信号通知全局 # 176| connect(Service::instance(), &Service::changeColorTheme, this, &TermWidget::onColorThemeChanged); # 177|-> connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &TermWidget::onThemeChanged); # 178| # 179| // 未找到搜索的匹配结果 Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:177:66: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 177 | connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &TermWidget::onThemeChanged); # | ^~~~~~~~~~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 175| // 主题变化只能从公共方法发出信号通知全局 # 176| connect(Service::instance(), &Service::changeColorTheme, this, &TermWidget::onColorThemeChanged); # 177|-> connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &TermWidget::onThemeChanged); # 178| # 179| // 未找到搜索的匹配结果 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; Error: CLANG_WARNING: deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:788:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 786| break; # 787| case EraseMode_Escape_Sequeue: # 788|-> length = 4; # 789| char sequeue[] = "\e[3~"; # 790| QTermWidget::setBackspaceMode(sequeue, 4); Error: CLANG_WARNING: deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidget.cpp:816:9: warning[deadcode.DeadStores]: Value stored to 'length' is never read # 814| case EraseMode_Auto: # 815| case EraseMode_Escape_Sequeue: # 816|-> length = 4; # 817| char sequeue[] = "\e[3~"; # 818| QTermWidget::setDeleteMode(sequeue, 4); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.cpp: scope_hint: In constructor ‘TermWidgetPage::TermWidgetPage(const TermProperties&, QWidget*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.cpp:47:33: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 47 | connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &TermWidgetPage::handleThemeTypeChanged); # | ^~~~~~~~ /usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/pagesearchbar.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.h:11: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.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 # | ^~~~~~~~~~~~~~~~~~ # 45| connect(m_findBar, &PageSearchBar::findPrev, this, &TermWidgetPage::handleFindPrev); # 46| connect(m_findBar, &PageSearchBar::keywordChanged, this, &TermWidgetPage::handleKeywordChanged); # 47|-> connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &TermWidgetPage::handleThemeTypeChanged); # 48| # 49| /******** Modify by nt001000 renfeixiang 2020-05-27:修改 增加参数区别remove和purge卸载命令 2020-05-28 优化代码 Begin***************/ Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.cpp:47:66: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 47 | connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &TermWidgetPage::handleThemeTypeChanged); # | ^~~~~~~~~~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 45| connect(m_findBar, &PageSearchBar::findPrev, this, &TermWidgetPage::handleFindPrev); # 46| connect(m_findBar, &PageSearchBar::keywordChanged, this, &TermWidgetPage::handleKeywordChanged); # 47|-> connect(DApplicationHelper::instance(), &DApplicationHelper::themeTypeChanged, this, &TermWidgetPage::handleThemeTypeChanged); # 48| # 49| /******** Modify by nt001000 renfeixiang 2020-05-27:修改 增加参数区别remove和purge卸载命令 2020-05-28 优化代码 Begin***************/ Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.cpp: scope_hint: In member function ‘void TermWidgetPage::setSplitStyle(Dtk::Widget::DSplitter*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.cpp:96:43: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 96 | DPalette pa = DApplicationHelper::instance()->applicationPalette(); # | ^~~~~~~~ /usr/include/dtk5/DWidget/dapplicationhelper.h:15:49: note: declared here # 15 | class D_DECL_DEPRECATED_X("Use DPaletteHelper") DApplicationHelper : public DGuiApplicationHelper # | ^~~~~~~~~~~~~~~~~~ # 94| //此处代码暂时保留 //DPalette pa = DApplicationHelper::instance()->palette(handle); # 95| //bug#57044 中的分割线颜色,保留的代码对默认主题,和十个内置主题的颜色是正确获取,但是在自定义的颜色获取存在异常,采取如下方式获取 # 96|-> DPalette pa = DApplicationHelper::instance()->applicationPalette(); # 97| QColor splitBrush = pa.color(DPalette::Highlight); # 98| pa.setBrush(DPalette::Background, splitBrush); Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.cpp: scope_hint: In member function ‘void TermWidgetPage::split(Qt::Orientation)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/termwidgetpage.cpp:146:34: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 146 | 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 # | ^~~~~~~~~~~~~~~~~~ # 144| expandThemeStr = Settings::instance()->extendColorScheme(); # 145| if (!expandThemeStr.isEmpty()) # 146|-> emit DApplicationHelper::instance()->themeTypeChanged(DGuiApplicationHelper::instance()->themeType()); # 147| # 148| return ; Error: COMPILER_WARNING (CWE-477): deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/themepreviewarea.cpp: scope_hint: In member function ‘virtual void ThemePreviewArea::paintEvent(QPaintEvent*)’ deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/themepreviewarea.cpp:78:39: warning[-Wdeprecated-declarations]: ‘DApplicationHelper’ is deprecated: Use DPaletteHelper # 78 | DPalette pa = DApplicationHelper::instance()->palette(this); # | ^~~~~~~~ /usr/include/dtk5/DWidget/DApplicationHelper:1: included_from: Included from here. deepin-terminal-6.0.12-build/deepin-terminal-6.0.12/src/views/themepreviewarea.cpp:8: 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 # | ^~~~~~~~~~~~~~~~~~ # 76| FramePath.addRoundedRect(QRectF(rect.x(), rect.y(), rect.width(), rect.height()), 8, 8); # 77| // 获取控件边框颜色 # 78|-> DPalette pa = DApplicationHelper::instance()->palette(this); # 79| QPen pen(pa.color(DPalette::FrameBorder), 1); # 80| painter.setPen(pen);