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:
parent
980012e168
commit
f348ffa800
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue