Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2015, 10:25:42 PM (9 years ago)
Author:
landauf
Message:

replace 'NULL' by 'nullptr'

Location:
code/branches/cpp11_v2/src/libraries/network/packet
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/network/packet/ClassID.cc

    r9667 r10765  
    5858  for(;it != IdentifierManager::getInstance().getIdentifierByStringMap().end();++it){
    5959    id = it->second;
    60     if(id == NULL || !id->hasFactory())
     60    if(id == nullptr || !id->hasFactory())
    6161      continue;
    6262    const std::string& classname = id->getName();
     
    144144    id=ClassByString( std::string((const char*)classname) );
    145145    orxout(internal_info, context::packets) << "processing classid: " << networkID << " name: " << classname << " id: " << id << endl;
    146     if(id==NULL){
     146    if(id==nullptr){
    147147      orxout(user_error, context::packets) << "Received a bad classname" << endl;
    148148      abort();
  • code/branches/cpp11_v2/src/libraries/network/packet/Gamestate.cc

    r9667 r10765  
    608608
    609609  if(dest_length==0)
    610     return NULL;
     610    return nullptr;
    611611
    612612  uint8_t *ndata = new uint8_t[dest_length*sizeof(uint8_t)+GamestateHeader::getSize()];
     
    645645
    646646  if(dest_length==0)
    647     return NULL;
     647    return nullptr;
    648648
    649649  uint8_t *ndata = new uint8_t[dest_length*sizeof(uint8_t)+GamestateHeader::getSize()];
  • code/branches/cpp11_v2/src/libraries/network/packet/Packet.cc

    r8858 r10765  
    122122  // Destroy the ENetPacket if necessary.
    123123  // Note: For the case ENet used the callback to destroy the packet, we have already set
    124   // enetPacket_ to NULL to avoid destroying it again.
     124  // enetPacket_ to nullptr to avoid destroying it again.
    125125  if (this->enetPacket_)
    126126  {
Note: See TracChangeset for help on using the changeset viewer.