[mythtv-commits] Ticket #2725: dynamic_cast can return NULL, must test
MythTV
mythtv at cvs.mythtv.org
Sat Nov 25 07:45:24 UTC 2006
#2725: dynamic_cast can return NULL, must test
--------------------+-------------------------------------------------------
Reporter: nigel | Owner: nigel
Type: defect | Status: closed
Priority: minor | Milestone: unknown
Component: mythtv | Version: 0.20
Severity: medium | Resolution: invalid
--------------------+-------------------------------------------------------
Changes (by ijr):
* status: new => closed
* resolution: => invalid
Comment:
Those casts in the event handler are absolutely guaranteed to succeed
there, unless something is _seriously_ wrong with the compiler or Qt. The
type has already been checked by the case statement, and those are valid
uses of dynamic_cast (though not really necessary).
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2725#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list