Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 18, 2009, 4:03:59 PM (16 years ago)
Author:
rgrieder
Message:

Found even more casts. They sure aren't all of them, but I hope to have caught every pointer C-style cast because they can be very dangerous.
Note: I didn't do the pointer casts in the network library because that would have taken way too long.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/Super.h

    r3196 r3301  
    9191            static void check() \
    9292            { \
    93                 SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply((T*)0); \
     93                SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply(static_cast<T*>(0)); \
    9494                SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>::check(); \
    9595            } \
     
    149149                // This call to the apply-function is the whole check. By calling the function with
    150150                // a T* pointer, the right function get's called.
    151                 SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply((T*)0);
     151                SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply(static_cast<T*>(0));
    152152
    153153                // Go go the check for of next super-function (functionnumber + 1)
Note: See TracChangeset for help on using the changeset viewer.