Fixed defects
List of Defects
Error: COMPILER_WARNING (CWE-477): [#def1]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp: scope_hint: In member function ‘virtual void KDecoration2::Decoration::hoverEnterEvent(QHoverEvent*)’
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:330:52: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position()
# 330 | auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y()));
# | ~~~~~~~~~~~^~
/usr/include/qt6/QtGui/QHoverEvent:1: included_from: Included from here.
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:15: included_from: Included from here.
/usr/include/qt6/QtGui/qevent.h:265:20: note: declared here
# 265 | inline QPointF posF() const { return position(); }
# | ^~~~
# 328| QCoreApplication::instance()->sendEvent(button, event);
# 329| }
# 330|-> auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y()));
# 331| d->updateSectionUnderMouse(flooredPos);
# 332| }
Error: COMPILER_WARNING (CWE-477): [#def2]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:330:83: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position()
# 330 | auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y()));
# | ~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:265:20: note: declared here
# 265 | inline QPointF posF() const { return position(); }
# | ^~~~
# 328| QCoreApplication::instance()->sendEvent(button, event);
# 329| }
# 330|-> auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y()));
# 331| d->updateSectionUnderMouse(flooredPos);
# 332| }
Error: COMPILER_WARNING (CWE-477): [#def3]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp: scope_hint: In member function ‘virtual void KDecoration2::Decoration::hoverMoveEvent(QHoverEvent*)’
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:349:59: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position()
# 349 | const bool contains = button->contains(event->posF());
# | ~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:265:20: note: declared here
# 265 | inline QPointF posF() const { return position(); }
# | ^~~~
# 347| }
# 348| const bool hovered = button->isHovered();
# 349|-> const bool contains = button->contains(event->posF());
# 350| if (!hovered && contains) {
# 351| QHoverEvent e(QEvent::HoverEnter, event->posF(), event->oldPosF(), event->modifiers());
Error: COMPILER_WARNING (CWE-477): [#def4]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:351:58: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position()
# 351 | QHoverEvent e(QEvent::HoverEnter, event->posF(), event->oldPosF(), event->modifiers());
# | ~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:265:20: note: declared here
# 265 | inline QPointF posF() const { return position(); }
# | ^~~~
# 349| const bool contains = button->contains(event->posF());
# 350| if (!hovered && contains) {
# 351|-> QHoverEvent e(QEvent::HoverEnter, event->posF(), event->oldPosF(), event->modifiers());
# 352| QCoreApplication::instance()->sendEvent(button, &e);
# 353| } else if (hovered && !contains) {
Error: COMPILER_WARNING (CWE-477): [#def5]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:354:58: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position()
# 354 | QHoverEvent e(QEvent::HoverLeave, event->posF(), event->oldPosF(), event->modifiers());
# | ~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:265:20: note: declared here
# 265 | inline QPointF posF() const { return position(); }
# | ^~~~
# 352| QCoreApplication::instance()->sendEvent(button, &e);
# 353| } else if (hovered && !contains) {
# 354|-> QHoverEvent e(QEvent::HoverLeave, event->posF(), event->oldPosF(), event->modifiers());
# 355| QCoreApplication::instance()->sendEvent(button, &e);
# 356| } else if (hovered && contains) {
Error: COMPILER_WARNING (CWE-477): [#def6]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:360:52: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position()
# 360 | auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y()));
# | ~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:265:20: note: declared here
# 265 | inline QPointF posF() const { return position(); }
# | ^~~~
# 358| }
# 359| }
# 360|-> auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y()));
# 361| d->updateSectionUnderMouse(flooredPos);
# 362| }
Error: COMPILER_WARNING (CWE-477): [#def7]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:360:83: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position()
# 360 | auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y()));
# | ~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:265:20: note: declared here
# 265 | inline QPointF posF() const { return position(); }
# | ^~~~
# 358| }
# 359| }
# 360|-> auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y()));
# 361| d->updateSectionUnderMouse(flooredPos);
# 362| }
Error: COMPILER_WARNING (CWE-477): [#def8]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::hoverEnterEvent(QHoverEvent*)’
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:489:60: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position()
# 489 | if (!d->enabled || !d->visible || !contains(event->posF())) {
# | ~~~~~~~~~~~^~
/usr/include/qt6/QtGui/QHoverEvent:1: included_from: Included from here.
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:18: included_from: Included from here.
/usr/include/qt6/QtGui/qevent.h:265:20: note: declared here
# 265 | inline QPointF posF() const { return position(); }
# | ^~~~
# 487| void DecorationButton::hoverEnterEvent(QHoverEvent *event)
# 488| {
# 489|-> if (!d->enabled || !d->visible || !contains(event->posF())) {
# 490| return;
# 491| }
Error: COMPILER_WARNING (CWE-477): [#def9]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::hoverLeaveEvent(QHoverEvent*)’
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:498:74: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position()
# 498 | if (!d->enabled || !d->visible || !d->hovered || contains(event->posF())) {
# | ~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:265:20: note: declared here
# 265 | inline QPointF posF() const { return position(); }
# | ^~~~
# 496| void DecorationButton::hoverLeaveEvent(QHoverEvent *event)
# 497| {
# 498|-> if (!d->enabled || !d->visible || !d->hovered || contains(event->posF())) {
# 499| return;
# 500| }
Error: COMPILER_WARNING (CWE-477): [#def10]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::mouseMoveEvent(QMouseEvent*)’
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:515:34: warning[-Wdeprecated-declarations]: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position()
# 515 | if (!contains(event->localPos())) {
# | ~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:234:13: note: declared here
# 234 | QPointF localPos() const { return position(); }
# | ^~~~~~~~
# 513| return;
# 514| }
# 515|-> if (!contains(event->localPos())) {
# 516| d->setHovered(false);
# 517| event->setAccepted(true);
Error: COMPILER_WARNING (CWE-477): [#def11]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::mousePressEvent(QMouseEvent*)’
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:523:64: warning[-Wdeprecated-declarations]: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position()
# 523 | if (!d->enabled || !d->visible || !contains(event->localPos()) || !d->acceptedButtons.testFlag(event->button())) {
# | ~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:234:13: note: declared here
# 234 | QPointF localPos() const { return position(); }
# | ^~~~~~~~
# 521| void DecorationButton::mousePressEvent(QMouseEvent *event)
# 522| {
# 523|-> if (!d->enabled || !d->visible || !contains(event->localPos()) || !d->acceptedButtons.testFlag(event->button())) {
# 524| return;
# 525| }
Error: COMPILER_WARNING (CWE-477): [#def12]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::mouseReleaseEvent(QMouseEvent*)’
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:546:33: warning[-Wdeprecated-declarations]: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position()
# 546 | if (contains(event->localPos())) {
# | ~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:234:13: note: declared here
# 234 | QPointF localPos() const { return position(); }
# | ^~~~~~~~
# 544| return;
# 545| }
# 546|-> if (contains(event->localPos())) {
# 547| if (!d->pressAndHold || event->button() != Qt::LeftButton) {
# 548| Q_EMIT clicked(event->button());
Error: COMPILER_WARNING (CWE-477): [#def13]
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbuttongroup.cpp: scope_hint: In lambda function
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbuttongroup.cpp:110:26: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
# 110 | auto createButtons = [=] {
# | ^
kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbuttongroup.cpp:110:26: note: add explicit ‘this’ or ‘*this’ capture
# 108| const auto layoutDirection = app ? app->layoutDirection() : Qt::LeftToRight;
# 109| auto settings = parent->settings();
# 110|-> auto createButtons = [=] {
# 111| const auto &buttons =
# 112| (type == Position::Left) ?
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-14.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | kdecoration-6.1.1-1.fc41 |
diffbase-store-results-to | /tmp/tmpqfe_v1aw/kdecoration-6.1.1-1.fc41.tar.xz |
diffbase-time-created | 2024-07-03 13:40:50 |
diffbase-time-finished | 2024-07-03 13:42:07 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpqfe_v1aw/kdecoration-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpqfe_v1aw/kdecoration-6.1.1-1.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-14.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kdecoration-6.0.3-1.fc40 |
store-results-to | /tmp/tmp1ga_tuft/kdecoration-6.0.3-1.fc40.tar.xz |
time-created | 2024-07-03 13:38:47 |
time-finished | 2024-07-03 13:40:33 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp1ga_tuft/kdecoration-6.0.3-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp1ga_tuft/kdecoration-6.0.3-1.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |