Changed the use of std::vector<..>.begin() to &vector<..>.front() in code

from passing the vector contents to the GeoSet::setPrimLengths(..) etc.
methods.  This has been done to fix the compile under the MS .NET compiler
which has changed the definiation of the std::vector<..>::iterator to
a class rather than a pointer.
This commit is contained in:
Robert Osfield
2002-01-15 23:21:31 +00:00
parent 5ed8d680c0
commit f7e944c47f

View File

@@ -104,20 +104,20 @@ bool DynGeoSet::setLists()
{
if ((_primLenList.size() > 0) && (_coordList.size() > 0))
{
setPrimLengths(_primLenList.begin());
setCoords(_coordList.begin());
setPrimLengths(&_primLenList.front());
setCoords(&_coordList.front());
if ((_normalList.size() > 0)
&& (getNormalBinding() != osg::GeoSet::BIND_OFF))
setNormals(_normalList.begin());
setNormals(&_normalList.front());
if ((_colorList.size() > 0)
&& (getColorBinding() != osg::GeoSet::BIND_OFF))
setColors(_colorList.begin());
setColors(&_colorList.front());
if ((_tcoordList.size() > 0)
&& (getTextureBinding() != osg::GeoSet::BIND_OFF))
setTextureCoords(_tcoordList.begin());
setTextureCoords(&_tcoordList.front());
return true;
}