mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-05 12:56:52 +01:00
Song: Use static_cast from int to Source
This commit is contained in:
parent
faf4c817cd
commit
b766ae3498
@ -1015,7 +1015,7 @@ void Song::InitFromQuery(const SqlRow &q, const bool reliable_metadata) {
|
||||
d->bitrate_ = q.ValueToInt("bitrate");
|
||||
d->samplerate_ = q.ValueToInt("samplerate");
|
||||
d->bitdepth_ = q.ValueToInt("bitdepth");
|
||||
d->source_ = Source(q.value("source").isNull() ? 0 : q.value("source").toInt());
|
||||
d->source_ = static_cast<Source>(q.value("source").isNull() ? 0 : q.value("source").toInt());
|
||||
d->directory_id_ = q.ValueToInt("directory_id");
|
||||
set_url(QUrl::fromEncoded(q.ValueToString("url").toUtf8()));
|
||||
d->basefilename_ = QFileInfo(d->url_.toLocalFile()).fileName();
|
||||
|
Loading…
Reference in New Issue
Block a user