Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 18, 2009, 4:03:59 PM (15 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/orxonox/objects/Scene.cc

    r3280 r3301  
    325325    {
    326326        // get the WorldEntity pointers
    327         WorldEntity* object0 = (WorldEntity*)colObj0->getUserPointer();
     327        WorldEntity* object0 = static_cast<WorldEntity*>(colObj0->getUserPointer());
    328328        assert(dynamic_cast<WorldEntity*>(object0));
    329         WorldEntity* object1 = (WorldEntity*)colObj1->getUserPointer();
     329        WorldEntity* object1 = static_cast<WorldEntity*>(colObj1->getUserPointer());
    330330        assert(dynamic_cast<WorldEntity*>(object1));
    331331
Note: See TracChangeset for help on using the changeset viewer.