Opened 12 months ago

Closed 9 months ago

Last modified 9 months ago

#13361 closed Patch - Bug Fix (fixed)

ChannelUtil::SetVisible function declaration unclear

Reported by: Klaas de Waal Owned by: Klaas de Waal
Priority: minor Milestone: 31.0
Component: MythTV - Channel Scanner Version: Master Head
Severity: low Keywords: DVB channel visible
Cc: stuarta@… Ticket locked: no

Description

The function SetVisible? in ChannelUtil?.cpp is defined as follows:

bool ChannelUtil::SetVisible(uint channel_id, bool visible)

The implementation sets the channel visible when the second parameter is true.

However, the declaration of SetVisible? in ChannelUtil?.h is as follows:

   static bool    SetVisible(uint channel_id, bool hidden);

This does suggest that when the second parameter is "true" the channel is hidden, i.e. not visible. The attached patch changes "bool hidden" to "bool visible" so that the declaration does match the implementation.

Attachments (1)

20181219_channelutil-setvisible.patch (506 bytes) - added by Klaas de Waal 12 months ago.

Download all attachments as: .zip

Change History (5)

Changed 12 months ago by Klaas de Waal

comment:1 Changed 9 months ago by Klaas de Waal

Owner: set to Klaas de Waal
Status: newaccepted

comment:2 Changed 9 months ago by Klaas de Waal

Resolution: Fixed
Status: acceptedclosed

In commit 670b9ea

Fixes #13361 - ChannelUtil::SetVisible? function declaration unclear

Signed-off-by: Klaas de Waal <mythtv@…>

comment:3 Changed 9 months ago by Klaas de Waal <mythtv@…>

Resolution: Fixedfixed

In 670b9ea14/mythtv:

Fixes #13361 - ChannelUtil::SetVisible? function declaration unclear

Signed-off-by: Klaas de Waal <mythtv@…>

comment:4 Changed 9 months ago by Stuart Auchterlonie

Milestone: needs_triage31.0
Note: See TracTickets for help on using tickets.