[PATCH] dynamic_cast and gcc3

Simon Hausmann hausmann at kde.org
Tue Nov 19 13:37:02 GMT 2002


On Mon, Nov 18, 2002 at 05:01:56PM +0100, Matthias Kretz wrote:
Content-Description: clearsigned data
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> I'm sorry, I missed a few dynamic_casts in the KView plugins. See #50769.
> This should fix all problems - dunno why I used dynamic_cast at all...

I hope you are away of the side-effect of this change that
static_cast only returns a null pointer if the passed object is a
null pointer, not if the type mismatches, i.e. it is unsafe for type
inspection.

Simon (just wondering, as the diff shows null-pointer checks
       after the casts)




More information about the kde-core-devel mailing list