Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2009, 2:45:37 PM (16 years ago)
Author:
rgrieder
Message:

Found a way to write orxonox_cast<T*> instead of orxonox_cast<T> so that the syntax resembles dynamic_cast<T*>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/network/synchronisable/Synchronisable.cc

    r3223 r3239  
    7373    if (creator)
    7474    {
    75         Synchronisable* synchronisable_creator = orxonox_cast<Synchronisable>(creator);
     75        Synchronisable* synchronisable_creator = orxonox_cast<Synchronisable*>(creator);
    7676        if (synchronisable_creator && synchronisable_creator->objectMode_)
    7777        {
     
    161161      }
    162162      else
    163         creator = orxonox_cast<BaseObject>(synchronisable_creator);
     163        creator = orxonox_cast<BaseObject*>(synchronisable_creator);
    164164    }
    165165    assert(getSynchronisable(header.getObjectID())==0);   //make sure no object with this id exists
    166166    BaseObject *bo = id->fabricate(creator);
    167167    assert(bo);
    168     Synchronisable *no = orxonox_cast<Synchronisable>(bo);
     168    Synchronisable *no = orxonox_cast<Synchronisable*>(bo);
    169169    assert(no);
    170170    no->objectID=header.getObjectID();
Note: See TracChangeset for help on using the changeset viewer.