warning fix: initializing members in the order they are declared keeps gcc happy

This commit is contained in:
torsten 2009-08-20 13:08:03 +00:00 committed by Tim Moore
parent 3ea58bf8db
commit 6d53abd5af
4 changed files with 7 additions and 7 deletions

View 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());
}

View 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());

View 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";

View 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;