Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7219 in orxonox.OLD for branches/std/src/lib/coord/p_node.cc


Ignore:
Timestamp:
Mar 12, 2006, 5:14:44 PM (18 years ago)
Author:
bensch
Message:

orxonox/std: less char*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/coord/p_node.cc

    r7216 r7219  
    680680 * @param bias the speed to iterate to this new Positions
    681681 */
    682 void PNode::setParentSoft(const char* parentName, float bias)
     682void PNode::setParentSoft(const std::string& parentName, float bias)
    683683{
    684684  PNode* parentNode = dynamic_cast<PNode*>(ClassList::getObject(parentName, CL_PARENT_NODE));
     
    701701void PNode::setParentMode (const std::string& parentingMode)
    702702{
    703   this->setParentMode(PNode::charToParentingMode(parentingMode));
     703  this->setParentMode(PNode::stringToParentingMode(parentingMode));
    704704}
    705705
     
    927927           this->getAbsDirV().y,
    928928           this->getAbsDirV().z,
    929            this->parentingModeToChar(parentMode),
     929           this->parentingModeToString(parentMode),
    930930           childNodeCount);
    931931  if (depth >= 2 || depth == 0)
     
    10491049 * @return the converted string
    10501050 */
    1051 const char* PNode::parentingModeToChar(int parentingMode)
     1051const char* PNode::parentingModeToString(int parentingMode)
    10521052{
    10531053  if (parentingMode == PNODE_LOCAL_ROTATE)
     
    10681068 * @return the int corresponding to the named parentingMode
    10691069 */
    1070 PARENT_MODE PNode::charToParentingMode(const std::string& parentingMode)
     1070PARENT_MODE PNode::stringToParentingMode(const std::string& parentingMode)
    10711071{
    10721072  if (parentingMode == "local-rotate")
Note: See TracChangeset for help on using the changeset viewer.