Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6512 in orxonox.OLD for trunk/src/util/track


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/util/track
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/track/track_manager.cc

    r5944 r6512  
    394394 * @param root the TiXmlElement to load the Data from
    395395*/
    396 bool TrackManager::loadParams(const TiXmlElement* root)
     396void TrackManager::loadParams(const TiXmlElement* root)
    397397{
    398398  double x, y, z, d;
  • trunk/src/util/track/track_manager.h

    r5313 r6512  
    139139  inline static TrackManager* getInstance() { if (!singletonRef) singletonRef = new TrackManager();  return singletonRef; };
    140140
    141   bool loadParams(const TiXmlElement* root);
     141  virtual void loadParams(const TiXmlElement* root);
    142142
    143143  // Methods to change the Path (initialisation)
Note: See TracChangeset for help on using the changeset viewer.