Changeset 9445 in orxonox.OLD for branches/proxy/src/lib/network/peer_info.cc
- Timestamp:
- Jul 25, 2006, 8:24:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/peer_info.cc
r9444 r9445 54 54 55 55 56 const std::string& PeerInfo::getNodeTypeString() 56 const std::string& PeerInfo::getNodeTypeString() const 57 57 { 58 return nodeNames[this->nodeType]; 58 return PeerInfo::nodeTypeToString( this->nodeType ); 59 // the above does the same, and is faster in it. (there is no case where node is uninit i hope!) 59 60 /* 60 61 switch( this->nodeType) … … 73 74 } 74 75 76 const std::string& PeerInfo::nodeTypeToString(unsigned int type) 77 { 78 return PeerInfo::nodeNames[type]; 79 } 80 81 75 82 const std::string PeerInfo::nodeNames[] = 76 83 {
Note: See TracChangeset
for help on using the changeset viewer.