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

@@ -107,7 +107,7 @@ void RadioBackend::GetChannels() {
RadioChannelList channels;
while (q.next()) {
RadioChannel channel;
channel.source = Song::Source(q.value(0).toInt());
channel.source = static_cast<Song::Source>(q.value(0).toInt());
channel.name = q.value(1).toString();
channel.url.setUrl(q.value(2).toString());
channel.thumbnail_url.setUrl(q.value(3).toString());