Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2008, 6:18:41 PM (16 years ago)
Author:
rgrieder
Message:

Changed all C-Style casts with C++ casts that I was able to find with a regex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/network/packet/DeleteObjects.cc

    r2371 r2506  
    6565  data_ = new uint8_t[size];
    6666  uint8_t *tdata = data_;
    67   *(ENUM::Type *)(tdata) = ENUM::DeleteObjects;
     67  *reinterpret_cast<ENUM::Type*>(tdata) = ENUM::DeleteObjects;
    6868  tdata += sizeof(ENUM::Type);
    6969  *(uint32_t *)tdata = number;
     
    7272    unsigned int temp = Synchronisable::popDeletedObject();
    7373//     assert(temp<10000); //ugly hack
    74     *(uint32_t *)(tdata) = temp;
     74    *reinterpret_cast<uint32_t*>(tdata) = temp;
    7575    COUT(3) << temp << " ";
    7676    tdata += sizeof(uint32_t);
Note: See TracChangeset for help on using the changeset viewer.