| 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 | 
  | 
}     |