Remove use of C-style casts

This commit is contained in:
staticssleever668
2021-10-11 23:28:28 +03:00
committed by Jonas Kvinge
parent 637772f8f0
commit b38ad81928
41 changed files with 84 additions and 84 deletions

View File

@@ -328,7 +328,7 @@ void VolumeSlider::paintEvent(QPaintEvent*) {
QPainter p(this);
const int padding = 7;
const int offset = int(double((width() - 2 * padding) * value()) / maximum());
const int offset = static_cast<int>(static_cast<double>((width() - 2 * padding) * value()) / maximum());
// If theme changed since last paintEvent, redraw the volume pixmap with new theme colors
if (previous_theme_text_color_ != palette().color(QPalette::WindowText)) {