From: ehofman Date: Wed, 24 Sep 2003 19:07:34 +0000 (+0000) Subject: Fix a problem where the compiler would mix up two function declarations because the... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f348ffa800ecad9a9083591235fa29a551a9b4d1;p=flightgear.git 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 --- diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 4008ba180..e6a310535 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -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) { diff --git a/src/Main/globals.hxx b/src/Main/globals.hxx index 3104989b2..67dbf19fd 100644 --- a/src/Main/globals.hxx +++ b/src/Main/globals.hxx @@ -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 )