]> git.mxchange.org Git - flightgear.git/commitdiff
Fix an issue which VC90 warns about - using 'this' in initialiser lists.
authorjmt <jmt>
Tue, 6 Oct 2009 23:13:18 +0000 (23:13 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 7 Oct 2009 06:26:23 +0000 (08:26 +0200)
src/Autopilot/route_mgr.cxx

index a80c330bccd4a3267358a1ebe15ee14e7e5aaf4d..daf9697deafc406608915979c9ffc1ed27583b76 100644 (file)
@@ -67,10 +67,10 @@ FGRouteMgr::FGRouteMgr() :
     target_altitude_ft( NULL ),
     altitude_lock( NULL ),
     input(fgGetNode( RM "input", true )),
-    listener(new InputListener(this)),
     mirror(fgGetNode( RM "route", true )),
     altitude_set( false )
 {
+    listener = new InputListener(this);
     input->setStringValue("");
     input->addChangeListener(listener);
 }