1
0
Fork 0

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:07:34 +00:00
parent 980012e168
commit f348ffa800
2 changed files with 3 additions and 3 deletions

View file

@ -145,7 +145,7 @@ FGGlobals::add_event (const char * name,
void
FGGlobals::add_event (const char * name,
const SGSubsystem * subsystem,
SGSubsystem * subsystem,
int repeat_value,
int initial_value)
{

View file

@ -220,7 +220,7 @@ public:
int initial_value = -1 );
virtual void add_event (const char * name,
const SGSubsystem * subsystem,
SGSubsystem * subsystem,
int repeat_value,
int initial_value = -1 );
@ -236,7 +236,7 @@ public:
template< typename Fun >
inline void add_event( const char * name,
const SGSubsystem * subsystem,
SGSubsystem * subsystem,
const Fun& func,
SGEvent::interval_type repeat_value,
SGEvent::interval_type initial_value = -1 )