Changeset 11071 for code/trunk/src/libraries/network/LANDiscoverable.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/network/LANDiscoverable.cc
r11009 r11071 46 46 RegisterClassNoArgs(LANDiscoverable); 47 47 48 LANDiscoverable::LANDiscoverable() : bActive_(false), host_( 0)48 LANDiscoverable::LANDiscoverable() : bActive_(false), host_(nullptr) 49 49 { 50 50 /* register object in orxonox */ … … 82 82 bindAddress.host = ENET_HOST_ANY; 83 83 bindAddress.port = LAN_DISCOVERY_PORT; 84 assert( this->host_ == 0);84 assert( this->host_ == nullptr ); 85 85 this->host_ = enet_host_create( &bindAddress, 10, 0, 0, 0 ); 86 if ( this->host_ == NULL)87 orxout(internal_error, context::network) << "LANDiscoverable: host_ == NULL" << endl;86 if ( this->host_ == nullptr ) 87 orxout(internal_error, context::network) << "LANDiscoverable: host_ == nullptr" << endl; 88 88 } 89 89 else 90 90 { 91 91 enet_host_destroy( this->host_ ); 92 this->host_ = 0;92 this->host_ = nullptr; 93 93 } 94 94 this->bActive_ = bActive;
Note: See TracChangeset
for help on using the changeset viewer.