Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7219 in orxonox.OLD for branches/std/src/lib/graphics/render2D


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

orxonox/std: less char*

Location:
branches/std/src/lib/graphics/render2D
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/graphics/render2D/element_2d.cc

    r7216 r7219  
    726726void Element2D::setParentMode2D (const std::string& parentingMode)
    727727{
    728   this->setParentMode2D(Element2D::charToParentingMode2D(parentingMode));
     728  this->setParentMode2D(Element2D::stringToParentingMode2D(parentingMode));
    729729}
    730730
     
    952952            this->relCoordinate.y,
    953953            this->getAbsDir2D(),
    954             Element2D::parentingModeToChar2D(parentMode),
     954            Element2D::parentingModeToString2D(parentMode),
    955955            Element2D::layer2DToChar(this->layer));
    956956
     
    10741074 * @return the converted string
    10751075 */
    1076 const char* Element2D::parentingModeToChar2D(int parentingMode)
     1076const char* Element2D::parentingModeToString2D(int parentingMode)
    10771077{
    10781078  if (parentingMode == E2D_PARENT_LOCAL_ROTATE)
     
    10931093 * @return the int corresponding to the named parentingMode
    10941094 */
    1095 E2D_PARENT_MODE Element2D::charToParentingMode2D(const std::string& parentingMode)
     1095E2D_PARENT_MODE Element2D::stringToParentingMode2D(const std::string& parentingMode)
    10961096{
    10971097  if (parentingMode == "local-rotate")
  • branches/std/src/lib/graphics/render2D/element_2d.h

    r7216 r7219  
    212212
    213213    // helper functions //
    214     static const char* parentingModeToChar2D(int parentingMode);
    215     static E2D_PARENT_MODE charToParentingMode2D(const std::string& parentingMode);
     214    static const char* parentingModeToString2D(int parentingMode);
     215    static E2D_PARENT_MODE stringToParentingMode2D(const std::string& parentingMode);
    216216
    217217    static const char* layer2DToChar(E2D_LAYER layer);
Note: See TracChangeset for help on using the changeset viewer.