[mythtv-commits] Ticket #7167: Check the return value of function calls inside of mythfrontend
MythTV
mythtv at cvs.mythtv.org
Fri Sep 25 19:54:13 UTC 2009
#7167: Check the return value of function calls inside of mythfrontend
---------------------------------------------+------------------------------
Reporter: Erik Hovland <erik at hovland.org> | Owner: ijr
Type: defect | Status: new
Priority: trivial | Milestone: unknown
Component: MythTV - General | Version: head
Severity: low | Resolution:
Mlocked: 0 |
---------------------------------------------+------------------------------
Comment(by stuartm):
I'd sooner remove the return value of BuildFocusList() than add all those
checks. The only time we return false would is when we're missing
focusable widgets and that's perfectly valid if the screen works without
them. If the screen doesn't work without them then it's a code error, the
author has failed to check that the required widgets exist in the theme.
So altogether it's redundant for BuildFocusList() to return any value at
all.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7167#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list