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/util/OutputHandler.cc

    r2710 r3301  
    9797    void OutputHandler::setSoftDebugLevel(OutputHandler::OutputDevice device, int level)
    9898    {
    99         OutputHandler::getOutStream().softDebugLevel_[(unsigned int)device] = level;
     99        OutputHandler::getOutStream().softDebugLevel_[static_cast<unsigned int>(device)] = level;
    100100    }
    101101
     
    107107    int OutputHandler::getSoftDebugLevel(OutputHandler::OutputDevice device)
    108108    {
    109         return OutputHandler::getOutStream().softDebugLevel_[(unsigned int)device];
     109        return OutputHandler::getOutStream().softDebugLevel_[static_cast<unsigned int>(device)];
    110110    }
    111111
Note: See TracChangeset for help on using the changeset viewer.