Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 18, 2010, 9:34:53 AM (15 years ago)
Author:
rgrieder
Message:

Fixed bug in HUDNavigation destructor again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc

    r6917 r6922  
    9595}
    9696
    97 HUDNavigation::~HUDNavigation() {
    98 
     97HUDNavigation::~HUDNavigation()
     98{
    9999    if (this->isInitialized())
    100100    {
    101         activeObjectListType::iterator it;
    102         for( it = activeObjectList_.begin(); it!=activeObjectList_.end(); ++it )
    103         {
    104             removeObject(it->first);
    105         }
    106         activeObjectList_.clear();
    107     }
    108 }
    109 
    110 void HUDNavigation::XMLPort(Element& xmlElement, XMLPort::Mode mode) {
     101        for (activeObjectListType::iterator it = activeObjectList_.begin(); it != activeObjectList_.end();)
     102            removeObject((it++)->first);
     103    }
     104}
     105
     106void HUDNavigation::XMLPort(Element& xmlElement, XMLPort::Mode mode)
     107{
    111108    SUPER(HUDNavigation, XMLPort, xmlElement, mode);
    112109
Note: See TracChangeset for help on using the changeset viewer.