Fixed defects

List of Defects

Error: COMPILER_WARNING: [#def1]
kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp: scope_hint: In member function ‘QString KFormatPrivate::formatDecimalDuration(quint64, int) const’
kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp:389:72: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘TimeConstants’ and floating-point type ‘double’ is deprecated
#  389 |         return tr("%1 days").arg(m_locale.toString(msecs / (MSecsInDay * 1.0), 'f', decimalPlaces));
#      |                                                             ~~~~~~~~~~~^~~~~
#  387|       if (msecs >= MSecsInDay) {
#  388|           //: @item:intext %1 is a real number, e.g. 1.23 days
#  389|->         return tr("%1 days").arg(m_locale.toString(msecs / (MSecsInDay * 1.0), 'f', decimalPlaces));
#  390|       } else if (msecs >= MSecsInHour) {
#  391|           //: @item:intext %1 is a real number, e.g. 1.23 hours

Error: COMPILER_WARNING: [#def2]
kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp:392:74: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘TimeConstants’ and floating-point type ‘double’ is deprecated
#  392 |         return tr("%1 hours").arg(m_locale.toString(msecs / (MSecsInHour * 1.0), 'f', decimalPlaces));
#      |                                                              ~~~~~~~~~~~~^~~~~
#  390|       } else if (msecs >= MSecsInHour) {
#  391|           //: @item:intext %1 is a real number, e.g. 1.23 hours
#  392|->         return tr("%1 hours").arg(m_locale.toString(msecs / (MSecsInHour * 1.0), 'f', decimalPlaces));
#  393|       } else if (msecs >= MSecsInMinute) {
#  394|           //: @item:intext %1 is a real number, e.g. 1.23 minutes

Error: COMPILER_WARNING: [#def3]
kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp:395:78: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘TimeConstants’ and floating-point type ‘double’ is deprecated
#  395 |         return tr("%1 minutes").arg(m_locale.toString(msecs / (MSecsInMinute * 1.0), 'f', decimalPlaces));
#      |                                                                ~~~~~~~~~~~~~~^~~~~
#  393|       } else if (msecs >= MSecsInMinute) {
#  394|           //: @item:intext %1 is a real number, e.g. 1.23 minutes
#  395|->         return tr("%1 minutes").arg(m_locale.toString(msecs / (MSecsInMinute * 1.0), 'f', decimalPlaces));
#  396|       } else if (msecs >= MSecsInSecond) {
#  397|           //: @item:intext %1 is a real number, e.g. 1.23 seconds

Error: COMPILER_WARNING: [#def4]
kf6-kcoreaddons-6.0.0-build/kcoreaddons-6.0.0/src/lib/util/kformatprivate.cpp:398:78: warning[-Wdeprecated-enum-float-conversion]: arithmetic between enumeration type ‘TimeConstants’ and floating-point type ‘double’ is deprecated
#  398 |         return tr("%1 seconds").arg(m_locale.toString(msecs / (MSecsInSecond * 1.0), 'f', decimalPlaces));
#      |                                                                ~~~~~~~~~~~~~~^~~~~
#  396|       } else if (msecs >= MSecsInSecond) {
#  397|           //: @item:intext %1 is a real number, e.g. 1.23 seconds
#  398|->         return tr("%1 seconds").arg(m_locale.toString(msecs / (MSecsInSecond * 1.0), 'f', decimalPlaces));
#  399|       }
#  400|       //: @item:intext %1 is a whole number

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-230.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namekf6-kcoreaddons-6.3.0-1.fc41
diffbase-store-results-to/tmp/tmpdeix0irt/kf6-kcoreaddons-6.3.0-1.fc41.tar.xz
diffbase-time-created2024-07-03 14:02:59
diffbase-time-finished2024-07-03 14:05:32
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdeix0irt/kf6-kcoreaddons-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpdeix0irt/kf6-kcoreaddons-6.3.0-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-230.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf6-kcoreaddons-6.0.0-1.fc40
store-results-to/tmp/tmp010vwyre/kf6-kcoreaddons-6.0.0-1.fc40.tar.xz
time-created2024-07-03 13:59:31
time-finished2024-07-03 14:02:35
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp010vwyre/kf6-kcoreaddons-6.0.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp010vwyre/kf6-kcoreaddons-6.0.0-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9