]> git.mxchange.org Git - simgear.git/commitdiff
warning fix: initializing members in the order they are declared keeps gcc happy
authortorsten <torsten>
Thu, 20 Aug 2009 13:08:03 +0000 (13:08 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 19:37:03 +0000 (21:37 +0200)
simgear/scene/model/CheckSceneryVisitor.cxx
simgear/scene/sky/cloudfield.cxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TreeBin.cxx

index 56a023680429d92d1f0765bcceeb9970bd1e3253..7d774cfa092b7d1b1c9c999c1348fe0a2eaf223c 100644 (file)
@@ -32,7 +32,7 @@ using namespace simgear;
 CheckSceneryVisitor::CheckSceneryVisitor(osgDB::DatabasePager* dbp, osg::Vec3 &position, double range)
 :osg::NodeVisitor(osg::NodeVisitor::NODE_VISITOR,
                   osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN),
-_loaded(true), _position(position), _range(range), _dbp(dbp)
+_position(position), _range(range), _loaded(true), _dbp(dbp)
 {
     _viewMatrices.push_back(osg::Matrix::identity());
 }
index e861442868f4417d1b0ab57759b610af3fad85f7..7ecd4292995e6b0711990bf8d4f1a467b9a33462 100644 (file)
@@ -151,8 +151,8 @@ SGCloudField::SGCloudField() :
        last_course(0.0),
        last_coverage(0.0),
         coverage(0.0),
-        defined3D(false),
-        reposition_count(0)
+        reposition_count(0),
+        defined3D(false)
 {
     cld_pos = SGGeoc();
     field_root->addChild(field_transform.get());
index d49925c25e0097e239ef6c346e3db87bbc2f8243..ec93abc0f6b88f9cc6c3e9c05170c133e2751ef0 100644 (file)
@@ -114,9 +114,9 @@ void TileEntry::set_timestamp(double time_ms)
 // Constructor
 TileEntry::TileEntry ( const SGBucket& b )
     : tile_bucket( b ),
+      tileFileName(b.gen_index_str()),
       _node( new osg::LOD ),
-      is_inner_ring(false),
-      tileFileName(b.gen_index_str())
+      is_inner_ring(false)
 {
     _node->setCullCallback(new TileCullCallback);
     tileFileName += ".stg";
index 6a74b92f73bf01165fecea621a3794be954bb86f..c531d0ed9d70ab464eb97fec5abfb83018edbe73 100644 (file)
@@ -180,10 +180,10 @@ namespace
 struct MakeTreesLeaf
 {
     MakeTreesLeaf(float range, Geometry* geometry, int varieties) :
-        _range(range), _geometry(geometry), _varieties(varieties)
+        _range(range), _varieties(varieties), _geometry(geometry)
     {}
     MakeTreesLeaf(const MakeTreesLeaf& rhs) :
-        _range(rhs._range), _geometry(rhs._geometry), _varieties(rhs._varieties) {}
+        _range(rhs._range), _varieties(rhs._varieties), _geometry(rhs._geometry) {}
     LOD* operator() () const
     {
         LOD* result = new LOD;