Review Request: static_casts for dom
Jaime
jtamate at gmail.com
Thu Oct 29 08:44:08 GMT 2009
Hi,
Most of them where hunted by the tool cppcheck -s, but others manually.
I use this way to do this. Just translate all the C-style cast to
static_cast (to find them is the hard task) and compile,
if the compiler complains, then it is a dynamic_cast or a
const_cast, or last resource reinterpret_cast.
I'll do this to klipper, hopefully this weekend.
Regards.
2009/10/29 Esben Mose Hansen <kde at mosehansen.dk>:
> On Wednesday 28 October 2009 23:00:58 Simon St James wrote:
>> I'm not sure if you hunted these down manually, but I have a locally
>> patched GDB that warns on all C-style cast, and gives a breakdown of how
>> they are interpreted (static_cast, static_cast from base to derived
>> [pointer/ reference], reinterpret_cast, const_cast etc). Is there any
>> interest in having a list of all of these for some KDE modules at all?
>>
>
> I would love to get that for Klipper. Should be a quick run!
>
> --
> kind regards, Esben
>
More information about the kde-core-devel
mailing list