Task #641 - fixed.err
back to task #641download
Error: COMPILER_WARNING:
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:
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:
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:
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