diff --git a/src/osgPlugins/geo/ReaderWriterGEO.cpp b/src/osgPlugins/geo/ReaderWriterGEO.cpp index f1001a43f..852ad1c7e 100644 --- a/src/osgPlugins/geo/ReaderWriterGEO.cpp +++ b/src/osgPlugins/geo/ReaderWriterGEO.cpp @@ -762,7 +762,7 @@ class ReaderGEO } return nv; } - void outputGeode(georecord grec, osgDB::Output &fout) { // + void outputGeode(const georecord& grec, osgDB::Output &fout) { // const std::vector gr=grec.getchildren(); if (gr.size()>0) { fout.moveIn(); @@ -946,7 +946,7 @@ class ReaderGEO } } } - int makeAnimatedGeometry(const georecord grec, const int imat,Group *nug) { + int makeAnimatedGeometry(const georecord& grec, const int imat,Group *nug) { // animated polygons - create a matrix & geode & poly & add to group nug const std::vector gr=grec.getchildren(); int nanimations=0; @@ -1168,7 +1168,7 @@ class ReaderGEO } return gr.size(); } - void makeTexts(georecord grec, Group *nug) + void makeTexts(const georecord& grec, Group *nug) { // makeTexts adds a set of text+transform Geometrys attached to current parent (Group nug) const std::vector gr=grec.getchildren(); std::vector geom;