Changeset 20292

Show
Ignore:
Timestamp:
06/08/07 14:46:23 (1 year ago)
Author:
patrick
Message:

Reduced the potential for expensive object copying and increased const
correctness of gadget::DeviceServer?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.2/modules/gadgeteer/gadget/DeviceServer.h

    r20291 r20292  
    7777      void debugDump(int debugLevel); 
    7878 
    79       std::string getName() { return mName; } 
     79      const std::string& getName() const 
     80      { 
     81         return mName; 
     82      } 
    8083 
    8184      /** Locks the active list. 
     
    100103      { mClientsLock.release(); } 
    101104 
    102       vpr::GUID getId() 
     105      const vpr::GUID& getId() const 
    103106      { 
    104107         return mId;