Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6512 in orxonox.OLD for trunk/src/lib/coord


Ignore:
Timestamp:
Jan 17, 2006, 10:01:07 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: loadParams is now virtual.
ALL THE CLASSES HAVE TO CALL

SuperClass::loadParams(root);

isntead of:
static_cast<SuperClass*>(this)→loadParams(root);

which was quite stupid anyways

Location:
trunk/src/lib/coord
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/coord/p_node.cc

    r6498 r6512  
    123123void PNode::loadParams(const TiXmlElement* root)
    124124{
    125   static_cast<BaseObject*>(this)->loadParams(root);
     125  BaseObject::loadParams(root);
    126126
    127127  LoadParam(root, "rel-coor", this, PNode, setRelCoor)
  • trunk/src/lib/coord/p_node.h

    r6498 r6512  
    7878  virtual ~PNode ();
    7979
    80   void loadParams(const TiXmlElement* root);
     80  virtual void loadParams(const TiXmlElement* root);
    8181
    8282  void init();
Note: See TracChangeset for help on using the changeset viewer.