Replace use of C-style casts

This commit is contained in:
Jonas Kvinge
2022-06-13 00:23:42 +02:00
parent abdcadb5fa
commit d82fd421ed
39 changed files with 95 additions and 93 deletions

View File

@@ -224,7 +224,7 @@ void PlayingWidget::CreateModeAction(const Mode mode, const QString &text, QActi
void PlayingWidget::SetMode(const int mode) {
mode_ = Mode(mode);
mode_ = static_cast<Mode>(mode);
fit_cover_width_action_->setEnabled(mode_ != SmallSongDetails);
@@ -485,7 +485,7 @@ void PlayingWidget::FadePreviousTrack(const qreal value) {
if (!visible_) return;
pixmap_previous_track_opacity_ = value;
if (qFuzzyCompare(pixmap_previous_track_opacity_, qreal(0.0))) {
if (qFuzzyCompare(pixmap_previous_track_opacity_, static_cast<qreal>(0.0))) {
pixmap_previous_track_ = QPixmap();
}