Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 4, 2012, 10:50:28 PM (12 years ago)
Author:
landauf
Message:

use orxonox_cast instead of dynamic_cast wherever possible

Location:
code/branches/presentation2012merge/src/modules/overlays/hud
Files:
2 edited

Legend:

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

    r9257 r9279  
    427427bool HUDNavigation::showObject(RadarViewable* rv)
    428428{
    429     if ( rv == dynamic_cast<RadarViewable*> ( this->getOwner() ) )
     429    if ( rv == orxonox_cast<RadarViewable*> ( this->getOwner() ) )
    430430        return false;
    431431    assert( rv->getWorldEntity() );
  • code/branches/presentation2012merge/src/modules/overlays/hud/HUDRadar.cc

    r8891 r9279  
    9292    void HUDRadar::addObject(RadarViewable* object)
    9393    {
    94         if (object == dynamic_cast<RadarViewable*>(this->owner_))
     94        if (object == orxonox_cast<RadarViewable*>(this->owner_))
    9595            return;
    9696        if( showObject(object) == false ) //do not show objects that are "invisible" or "radar invisible"
     
    189189    bool HUDRadar::showObject(RadarViewable* rv)
    190190    {
    191         if ( rv == dynamic_cast<RadarViewable*> ( this->getOwner() ) )
     191        if ( rv == orxonox_cast<RadarViewable*> ( this->getOwner() ) )
    192192            return false;
    193193        assert( rv->getWorldEntity() );
Note: See TracChangeset for help on using the changeset viewer.