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/items/InvisiblePickup.cc

    r9279 r9305  
    8383    void InvisiblePickup::initializeIdentifier(void)
    8484    {
    85         std::stringstream stream;
    86         stream << this->getDuration();
    87         std::string type1 = "duration";
    88         std::string val1 = stream.str();
    89         this->pickupIdentifier_->addParameter(type1, val1);
     85        this->pickupIdentifier_->addParameter("duration", this->getDuration());
    9086    }
    9187
Note: See TracChangeset for help on using the changeset viewer.