Changeset 10765 for code/branches/cpp11_v2/src/libraries/network/packet
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- 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 58 58 for(;it != IdentifierManager::getInstance().getIdentifierByStringMap().end();++it){ 59 59 id = it->second; 60 if(id == NULL|| !id->hasFactory())60 if(id == nullptr || !id->hasFactory()) 61 61 continue; 62 62 const std::string& classname = id->getName(); … … 144 144 id=ClassByString( std::string((const char*)classname) ); 145 145 orxout(internal_info, context::packets) << "processing classid: " << networkID << " name: " << classname << " id: " << id << endl; 146 if(id== NULL){146 if(id==nullptr){ 147 147 orxout(user_error, context::packets) << "Received a bad classname" << endl; 148 148 abort(); -
code/branches/cpp11_v2/src/libraries/network/packet/Gamestate.cc
r9667 r10765 608 608 609 609 if(dest_length==0) 610 return NULL;610 return nullptr; 611 611 612 612 uint8_t *ndata = new uint8_t[dest_length*sizeof(uint8_t)+GamestateHeader::getSize()]; … … 645 645 646 646 if(dest_length==0) 647 return NULL;647 return nullptr; 648 648 649 649 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 122 122 // Destroy the ENetPacket if necessary. 123 123 // Note: For the case ENet used the callback to destroy the packet, we have already set 124 // enetPacket_ to NULLto avoid destroying it again.124 // enetPacket_ to nullptr to avoid destroying it again. 125 125 if (this->enetPacket_) 126 126 {
Note: See TracChangeset
for help on using the changeset viewer.