Fix narrowing conversions

This commit is contained in:
Jonas Kvinge
2021-10-30 02:21:29 +02:00
parent a704412dee
commit 79ac53b2d9
111 changed files with 376 additions and 373 deletions

View File

@@ -174,7 +174,7 @@ void RadioModel::AddChannels(const RadioChannelList &channels) {
container = container_nodes_[channel.source];
}
else {
beginInsertRows(ItemToIndex(root_), root_->children.count(), root_->children.count());
beginInsertRows(ItemToIndex(root_), static_cast<int>(root_->children.count()), static_cast<int>(root_->children.count()));
RadioItem *item = new RadioItem(RadioItem::Type_Service, root_);
item->source = channel.source;
item->display_text = Song::DescriptionForSource(channel.source);
@@ -184,7 +184,7 @@ void RadioModel::AddChannels(const RadioChannelList &channels) {
endInsertRows();
container = item;
}
beginInsertRows(ItemToIndex(container), container->children.count(), container->children.count());
beginInsertRows(ItemToIndex(container), static_cast<int>(container->children.count()), static_cast<int>(container->children.count()));
RadioItem *item = new RadioItem(RadioItem::Type_Channel, container);
item->source = channel.source;
item->display_text = channel.name;