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/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/src/libraries/core/Super.h

    r8866 r9279  
    398398                    inline void operator()( SUPER_CALL_ARGUMENTS##hasarguments(__VA_ARGS__) ) \
    399399                    { \
    400                         (dynamic_cast<T*>(object))->T:: functionname
     400                        (orxonox_cast<T*>(object))->T:: functionname
    401401
    402402        /*
     
    508508                inline void operator()( SUPER_CALL_ARGUMENTS##hasarguments(__VA_ARGS__) )
    509509                {
    510                     (dynamic_cast<T*>(object))->T:: functionname ( Call the function with it's arguments );
     510                    (orxonox_cast<T*>(object))->T:: functionname ( Call the function with it's arguments );
    511511                }
    512512
  • code/branches/presentation2012merge/src/libraries/core/XMLPort.h

    r8858 r9279  
    197197        ClassIdentifier<classname>::getIdentifier()->addXMLPortParamContainer(paramname, containername); \
    198198    } \
    199     containername->port(dynamic_cast<BaseObject*>(this), object, xmlelement, mode)
     199    containername->port(orxonox_cast<BaseObject*>(this), object, xmlelement, mode)
    200200
    201201// --------------------
Note: See TracChangeset for help on using the changeset viewer.