Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9445 in orxonox.OLD for branches/proxy/src/lib/network/peer_info.cc


Ignore:
Timestamp:
Jul 25, 2006, 8:24:21 AM (18 years ago)
Author:
bensch
Message:

some more const's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/peer_info.cc

    r9444 r9445  
    5454
    5555
    56 const std::string& PeerInfo::getNodeTypeString()
     56const std::string& PeerInfo::getNodeTypeString() const
    5757{
    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!)
    5960/*
    6061  switch( this->nodeType)
     
    7374}
    7475
     76const std::string& PeerInfo::nodeTypeToString(unsigned int type)
     77{
     78  return PeerInfo::nodeNames[type];
     79}
     80
     81
    7582const std::string PeerInfo::nodeNames[] =
    7683{
Note: See TracChangeset for help on using the changeset viewer.