Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2008, 11:28:50 AM (15 years ago)
Author:
rgrieder
Message:

Fixed a bug in Timer.h: Include of Executor was missing, but when using forward declarations, you can still cast to base classes if you use a brute force C-style cast.
In this case this would not have mattered (simple derivation), but C-style casts with pointers are dangerous.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/core/Iterator.h

    r2506 r2513  
    9696            inline Iterator(ObjectListElement<O>* element)
    9797            {
    98                 this->element_ = (element) ? static_cast<ObjectListBaseElement*<(element) : 0;
     98                this->element_ = (element) ? static_cast<ObjectListBaseElement*>(element) : 0;
    9999                this->list_ = ClassIdentifier<O>::getIdentifier()->getObjects();
    100100                this->iterator_ = this->list_->registerIterator(this);
Note: See TracChangeset for help on using the changeset viewer.