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/modules/pickup/Pickup.cc

    r9279 r9305  
    9090    void Pickup::initializeIdentifier(void)
    9191    {
    92         std::string val1 = this->getActivationType();
    93         std::string type1 = "activationType";
    94         this->pickupIdentifier_->addParameter(type1, val1);
    95 
    96         std::string val2 = this->getDurationType();
    97         std::string type2 = "durationType";
    98         this->pickupIdentifier_->addParameter(type2, val2);
     92        this->pickupIdentifier_->addParameter("activationType", this->getActivationType());
     93        this->pickupIdentifier_->addParameter("durationType", this->getDurationType());
    9994    }
    10095
Note: See TracChangeset for help on using the changeset viewer.