Rob Shearman wrote:

There are a few HGDIOBJ casts as well as the already mentioned ALLOC_OBJ macro. For example, in paint.c:
DeleteObject((HGDIOBJ)hbr);

Yes, both are HANDLEs, so they don't really need a cast. I've probably written too much MFC code in my life :)


I've deleted all HGDIOBJ casts, but I'm not sure if it's the only case of redundant casts.

Krzysztof



Reply via email to