- Timestamp:
- Mar 5, 2010, 6:26:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/modules/pickup/PickupManager.cc
r6474 r6475 83 83 */ 84 84 //TODO: Make sure that either the PickupRepresentation is destroyed upon destruction of the PickupManager if the representation wasn't created with XMLPort. 85 bool PickupManager::registerRepresentation(const PickupIdentifier &identifier, PickupRepresentation* representation)85 bool PickupManager::registerRepresentation(const PickupIdentifier* identifier, PickupRepresentation* representation) 86 86 { 87 87 if(this->representations_.find(identifier) == this->representations_.end()) //!< If the Pickupable already has a RepresentationRegistered. … … 104 104 PickupRepresentation* PickupManager::getRepresentation(const PickupIdentifier* identifier) 105 105 { 106 std::map<const PickupIdentifier , PickupRepresentation*, PickupIdentifierCompare>::iterator it = this->representations_.find(*identifier);106 std::map<const PickupIdentifier*, PickupRepresentation*, PickupIdentifierCompare>::iterator it = this->representations_.find(identifier); 107 107 if(it == this->representations_.end()) 108 108 {
Note: See TracChangeset
for help on using the changeset viewer.