Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 12, 2012, 11:05:15 PM (12 years ago)
Author:
landauf
Message:

removed 2 lines from ~PickupCollection() again because they don't solve the real issue
use destroy() for PickupCollectionIdentifier because it's an OrxonoxClass
calling this→destroy() should be the last thing you do in a function
details in PickupIdentifier

Location:
code/branches/presentation2012merge/src/orxonox/pickup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/src/orxonox/pickup/PickupIdentifier.cc

    r8864 r9294  
    113113        Returns false if the parameter already existed, true if not.
    114114    */
    115     bool PickupIdentifier::addParameter(std::string & name, std::string & value)
     115    bool PickupIdentifier::addParameter(const std::string& name, const std::string& value)
    116116    {
    117117        orxout(verbose, context::pickups) << "PickupIdentifier " << name << ", " << value << endl;
  • code/branches/presentation2012merge/src/orxonox/pickup/PickupIdentifier.h

    r7551 r9294  
    7272            virtual int compare(const PickupIdentifier* identifier) const; //!< Compares two PickupIdentifiers and returns 0 if a == b, <0 if a < b and >0 if a > b for a.compare(b).
    7373
    74             bool addParameter(std::string & name, std::string & value); //!< Add a parameter to the PickupIdentifier.
     74            bool addParameter(const std::string& name, const std::string& value); //!< Add a parameter to the PickupIdentifier.
    7575
    7676        private:
Note: See TracChangeset for help on using the changeset viewer.