ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/brains/MoleculeCreator.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/brains/MoleculeCreator.cpp (file contents):
Revision 1976 by tim, Fri Feb 4 22:44:15 2005 UTC vs.
Revision 2087 by gezelter, Tue Mar 8 21:06:49 2005 UTC

# Line 253 | Line 253 | RigidBody* MoleculeCreator::createRigidBody(MoleculeSt
253      //The third part is the index of the rigidbody defined in meta-data file
254      //For example, Butane_RB_0 is a valid rigid body name of butane molecule
255      /**@todo replace itoa by lexi_cast */
256 <    char buffer [33];  
257 <    sprintf(buffer, "%d", mol->getNRigidBodies());
258 <    //rb->setType(mol->getType() + "_RB_" + toString<int>(mol->getNRigidBodies()));
259 <    rb->setType(mol->getType() + "_RB_" + buffer);
256 >    std::string s = OOPSE_itoa(mol->getNRigidBodies(), 10);
257 >    rb->setType(mol->getType() + "_RB_" + s.c_str());
258  
259      return rb;
260   }    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines