Fix a problem where the compiler would mix up two function declarations because the one wich has SGSubsystem in it's options list expected a const SGSubsystem, but it was called with a plain SGSubsystem

This commit is contained in:
ehofman 2003-09-24 19:06:59 +00:00
parent d22640ef4e
commit 7ae57483f3
2 changed files with 4 additions and 4 deletions

View File

@ -71,12 +71,12 @@ SGEvent::SGEvent( const char* name,
}
SGEvent::SGEvent( const char* name,
const SGSubsystem* subsystem,
SGSubsystem* subsystem,
interval_type repeat_value,
interval_type initial_value )
: _name(name),
_callback(NULL),
_subsystem((SGSubsystem*)&subsystem),
_subsystem(subsystem),
_repeat_value(repeat_value),
_initial_value(initial_value),
_cum_time(0),

View File

@ -71,7 +71,7 @@ public:
interval_type initial_value );
SGEvent( const char* desc,
const SGSubsystem* subsystem,
SGSubsystem* subsystem,
interval_type repeat_value,
interval_type initial_value );
@ -176,7 +176,7 @@ public:
* -1 means run immediately.
*/
inline void add( const char* name,
const SGSubsystem* subsystem,
SGSubsystem* subsystem,
interval_type repeat_value,
interval_type initial_value = -1 )
{