Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2012, 9:54:49 PM (12 years ago)
Author:
landauf
Message:

simplified code a little by using MultiType instead of explicit conversion

File:
1 edited

Legend:

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

    r9294 r9305  
    113113        Returns false if the parameter already existed, true if not.
    114114    */
    115     bool PickupIdentifier::addParameter(const std::string& name, const std::string& value)
     115    bool PickupIdentifier::addParameter(const std::string& name, const MultiType& value)
    116116    {
    117117        orxout(verbose, context::pickups) << "PickupIdentifier " << name << ", " << value << endl;
     
    123123        }
    124124
    125         this->parameters_[name] = value;
     125        this->parameters_[name] = value.getString();
    126126
    127127        return true;
Note: See TracChangeset for help on using the changeset viewer.