From b766ae34981274a1362fbee4149dfe13d6842e95 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 24 Mar 2023 20:54:42 +0100 Subject: [PATCH] Song: Use static_cast from int to Source --- src/core/song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index 45bb19d42..57c67434c 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -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(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();