Use const refs for const data.
Modified Files: simgear/scene/model/CheckSceneryVisitor.hxx simgear/scene/model/CheckSceneryVisitor.cxx
This commit is contained in:
parent
78a471f684
commit
67b9cba4d3
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user