Initialize container to nullptr
This commit is contained in:
parent
600450082a
commit
1d4c736cfa
@ -163,7 +163,7 @@ void RadioModel::Reset() {
|
|||||||
void RadioModel::AddChannels(const RadioChannelList &channels) {
|
void RadioModel::AddChannels(const RadioChannelList &channels) {
|
||||||
|
|
||||||
for (const RadioChannel &channel : channels) {
|
for (const RadioChannel &channel : channels) {
|
||||||
RadioItem *container = root_;
|
RadioItem *container = nullptr;
|
||||||
if (container_nodes_.contains(channel.source)) {
|
if (container_nodes_.contains(channel.source)) {
|
||||||
container = container_nodes_[channel.source];
|
container = container_nodes_[channel.source];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user