#10381: Fix coverity CID 611220: unchecked dynamic_cast -------------------------------------+---------------------------- Reporter: noryb009 | Owner: anevilyak Type: bug | Status: closed Priority: normal | Milestone: R1 Component: Applications/Debugger | Version: R1/Development Resolution: invalid | Keywords: gci2013 Blocked By: | Blocking: Has a Patch: 1 | Platform: All -------------------------------------+---------------------------- Comment (by anevilyak): Not necessarily, bear in mind dynamic_cast isn't only for checking type validity ; depending on the structure of the classes in question and the inheritance hierarchy involved, it may also adjust the 'this' pointer in the process, so it's not interchangeable with static_cast except in simple cases. -- Ticket URL: <http://dev.haiku-os.org/ticket/10381#comment:4> Haiku <http://dev.haiku-os.org> Haiku - the operating system.