Use const refs for const data.

Modified Files:
 	simgear/scene/model/CheckSceneryVisitor.hxx
	simgear/scene/model/CheckSceneryVisitor.cxx
This commit is contained in:
frohlich 2009-09-03 20:10:42 +00:00 committed by Tim Moore
parent 78a471f684
commit 67b9cba4d3
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
using namespace simgear;
CheckSceneryVisitor::CheckSceneryVisitor(osgDB::DatabasePager* dbp, osg::Vec3 &position, double range)
CheckSceneryVisitor::CheckSceneryVisitor(osgDB::DatabasePager* dbp, const osg::Vec3 &position, double range)
:osg::NodeVisitor(osg::NodeVisitor::NODE_VISITOR,
osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN),
_position(position), _range(range), _loaded(true), _dbp(dbp)

View File

@ -38,7 +38,7 @@ class SGPagedLOD;
class CheckSceneryVisitor : public osg::NodeVisitor
{
public:
CheckSceneryVisitor(osgDB::DatabasePager* dbp, osg::Vec3 &position, double range);
CheckSceneryVisitor(osgDB::DatabasePager* dbp, const osg::Vec3 &position, double range);
virtual void apply(osg::Node& node);
virtual void apply(osg::PagedLOD& node);