Replace use of C-style casts
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -270,7 +270,7 @@ QString RadioModel::ChannelIconPixmapCacheKey(const QModelIndex &idx) const {
|
||||
}
|
||||
|
||||
QPixmap RadioModel::ServiceIcon(const QModelIndex &idx) const {
|
||||
return Song::IconForSource(Song::Source(idx.data(Role_Source).toInt())).pixmap(kTreeIconSize, kTreeIconSize);
|
||||
return Song::IconForSource(static_cast<Song::Source>(idx.data(Role_Source).toInt())).pixmap(kTreeIconSize, kTreeIconSize);
|
||||
}
|
||||
|
||||
QPixmap RadioModel::ServiceIcon(RadioItem *item) const {
|
||||
|
||||
Reference in New Issue
Block a user