Replace C-style casts with C++ ones

This commit is contained in:
Eugene Shalygin 2017-05-29 14:10:31 +02:00
parent e3671050d1
commit 74cecb1b6c
20 changed files with 41 additions and 39 deletions

View file

@ -71,7 +71,7 @@ void StatsDialog::update()
// Global ratio
m_ui->labelGlobalRatio->setText(
((atd > 0) && (atu > 0))
? Utils::String::fromDouble((qreal)atu / (qreal)atd, 2)
? Utils::String::fromDouble(static_cast<qreal>(atu) / atd, 2)
: "-");
// Cache hits
qreal readRatio = cs.readRatio;