Task #1391 - kf5-kconfigwidgets-5.115.0-1.fc40/scan-results.err
back to task #1391download
Error: COMPILER_WARNING (CWE-477):
kf5-kconfigwidgets-5.115.0-build/kconfigwidgets-5.115.0/src/kcodecaction.cpp: scope_hint: In member function ‘int KCodecAction::mibForName(const QString&, bool*) const’
kf5-kconfigwidgets-5.115.0-build/kconfigwidgets-5.115.0/src/kcodecaction.cpp:114:51: warning[-Wdeprecated-declarations]: ‘QTextCodec* KCharsets::codecForName(const QString&, bool&) const’ is deprecated: Since 5.101. use QTextCodec codecForName or QStringEncoder
# 114 | QTextCodec *codec = charsets->codecForName(codecName, success);
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KCodecs/KCharsets:1: included_from: Included from here.
kf5-kconfigwidgets-5.115.0-build/kconfigwidgets-5.115.0/src/kcodecaction.cpp:12: included_from: Included from here.
/usr/include/KF5/KCodecs/kcharsets.h:86:17: note: declared here
# 86 | QTextCodec *codecForName(const QString &n, bool &ok) const;
# | ^~~~~~~~~~~~
# 112| success = true;
# 113| } else {
# 114|-> QTextCodec *codec = charsets->codecForName(codecName, success);
# 115| if (!success) {
# 116| // Maybe we got a description name instead
Error: COMPILER_WARNING (CWE-477):
kf5-kconfigwidgets-5.115.0-build/kconfigwidgets-5.115.0/src/kcodecaction.cpp:117:43: warning[-Wdeprecated-declarations]: ‘QTextCodec* KCharsets::codecForName(const QString&, bool&) const’ is deprecated: Since 5.101. use QTextCodec codecForName or QStringEncoder
# 117 | codec = charsets->codecForName(charsets->encodingForName(codecName), success);
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KCodecs/kcharsets.h:86:17: note: declared here
# 86 | QTextCodec *codecForName(const QString &n, bool &ok) const;
# | ^~~~~~~~~~~~
# 115| if (!success) {
# 116| // Maybe we got a description name instead
# 117|-> codec = charsets->codecForName(charsets->encodingForName(codecName), success);
# 118| }
# 119|
Error: COMPILER_WARNING (CWE-477):
kf5-kconfigwidgets-5.115.0-build/kconfigwidgets-5.115.0/src/kcodecaction.cpp: scope_hint: In member function ‘bool KCodecAction::setCurrentCodec(QTextCodec*)’
kf5-kconfigwidgets-5.115.0-build/kconfigwidgets-5.115.0/src/kcodecaction.cpp:232:65: warning[-Wdeprecated-declarations]: ‘QTextCodec* KCharsets::codecForName(const QString&) const’ is deprecated: Since 5.101. use QTextCodec codecForName or QStringEncoder
# 232 | if (codec == KCharsets::charsets()->codecForName(actions().at(i)->menu()->actions().at(j)->text())) {
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KCodecs/kcharsets.h:67:17: note: declared here
# 67 | QTextCodec *codecForName(const QString &name) const;
# | ^~~~~~~~~~~~
# 230| continue;
# 231| }
# 232|-> if (codec == KCharsets::charsets()->codecForName(actions().at(i)->menu()->actions().at(j)->text())) {
# 233| d->currentSubAction = actions().at(i)->menu()->actions().at(j);
# 234| d->currentSubAction->trigger();
Error: CLANG_WARNING:
kf5-kconfigwidgets-5.115.0-build/kconfigwidgets-5.115.0/src/kstandardaction.cpp:297:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'mf'
# 295| // Set the text before setting the MenuRole, as on OS X setText will do some heuristic role guessing.
# 296| // This ensures user menu items get the intended role out of the list below.
# 297|-> pAction->setText(sLabel);
# 298|
# 299| switch (id) {