]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a problem where the compiler would mix up two function declarations because the...
authorehofman <ehofman>
Wed, 24 Sep 2003 19:07:34 +0000 (19:07 +0000)
committerehofman <ehofman>
Wed, 24 Sep 2003 19:07:34 +0000 (19:07 +0000)
src/Main/globals.cxx
src/Main/globals.hxx

index 4008ba180beff8bae54abdeb6897e84405b2c3be..e6a310535de5b01e5dbe9951be43e5ab7f0d4a22 100644 (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)
 {
index 3104989b21e4cdf0757bd092ff99b06173850354..67dbf19fdfb0b27d8f1a3247a802b607387e5d8c 100644 (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 )