]> git.mxchange.org Git - simgear.git/commitdiff
Use const refs for const data.
authorfrohlich <frohlich>
Thu, 3 Sep 2009 20:10:42 +0000 (20:10 +0000)
committerTim Moore <timoore@redhat.com>
Sat, 5 Sep 2009 15:01:58 +0000 (17:01 +0200)
Modified Files:
  simgear/scene/model/CheckSceneryVisitor.hxx
simgear/scene/model/CheckSceneryVisitor.cxx

simgear/scene/model/CheckSceneryVisitor.cxx
simgear/scene/model/CheckSceneryVisitor.hxx

index 7d774cfa092b7d1b1c9c999c1348fe0a2eaf223c..ebcc011e650de3e7964b16e6c29f78650393235f 100644 (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)
index c89fc18bcba94f0fd634e2d476aba65827380289..e3e5109f62369b3f40e9b03ee307f547488e504d 100644 (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);