Uppercase literal suffix
This commit is contained in:
@@ -707,7 +707,7 @@ void Player::SeekTo(const qint64 seconds) {
|
||||
return;
|
||||
}
|
||||
|
||||
const qint64 nanosec = qBound(0ll, seconds * kNsecPerSec, length_nanosec);
|
||||
const qint64 nanosec = qBound(0LL, seconds * kNsecPerSec, length_nanosec);
|
||||
engine_->Seek(nanosec);
|
||||
|
||||
qLog(Debug) << "Track seeked to" << nanosec << "ns - updating scrobble point";
|
||||
|
||||
@@ -444,7 +444,7 @@ void Song::set_grouping(const QString &v) { d->grouping_ = v; }
|
||||
void Song::set_comment(const QString &v) { d->comment_ = v; }
|
||||
void Song::set_lyrics(const QString &v) { d->lyrics_ = v; }
|
||||
|
||||
void Song::set_beginning_nanosec(qint64 v) { d->beginning_ = qMax(0ll, v); }
|
||||
void Song::set_beginning_nanosec(qint64 v) { d->beginning_ = qMax(0LL, v); }
|
||||
void Song::set_end_nanosec(qint64 v) { d->end_ = v; }
|
||||
void Song::set_length_nanosec(qint64 v) { d->end_ = d->beginning_ + v; }
|
||||
|
||||
@@ -1511,7 +1511,7 @@ QString Song::PrettyRating() const {
|
||||
|
||||
double rating = d->rating_;
|
||||
|
||||
if (rating == -1.0f) return "0";
|
||||
if (rating == -1.0F) return "0";
|
||||
|
||||
return QString::number(static_cast<int>(rating * 100));
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ QColor StyleHelper::borderColor(bool lightColored) {
|
||||
QColor StyleHelper::toolBarBorderColor() {
|
||||
|
||||
const QColor base = baseColor();
|
||||
return QColor::fromHsv(base.hue(), base.saturation(), clamp(base.value() * 0.80f));
|
||||
return QColor::fromHsv(base.hue(), base.saturation(), clamp(base.value() * 0.80F));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user