Ran script to remove trailing spaces and tabs

This commit is contained in:
Robert Osfield
2012-03-21 17:36:20 +00:00
parent 1e35f8975d
commit 14a563dc9f
1495 changed files with 21873 additions and 21873 deletions

View File

@@ -8,7 +8,7 @@ osgParticle::MultiSegmentPlacer::MultiSegmentPlacer()
: Placer(), _total_length(0)
{
}
osgParticle::MultiSegmentPlacer::MultiSegmentPlacer(const MultiSegmentPlacer& copy, const osg::CopyOp& copyop)
: Placer(copy, copyop), _vx(copy._vx), _total_length(copy._total_length)
{
@@ -18,13 +18,13 @@ void osgParticle::MultiSegmentPlacer::recompute_length()
{
Vertex_vector::iterator i;
Vertex_vector::iterator i0 = _vx.begin();
_total_length = 0;
for (i=_vx.begin(); i!=_vx.end(); ++i)
{
_total_length += (i->first - i0->first).length();
i->second = _total_length;
i0 = i;
i0 = i;
}
}
@@ -32,7 +32,7 @@ void osgParticle::MultiSegmentPlacer::place(Particle* P) const
{
if (_vx.size() >= 2) {
float x = rangef(0, _total_length).get_random();
Vertex_vector::const_iterator i;
Vertex_vector::const_iterator i0 = _vx.begin();
const Vertex_vector::const_iterator vend = _vx.end();
@@ -46,7 +46,7 @@ void osgParticle::MultiSegmentPlacer::place(Particle* P) const
return;
}
i0 = i;
}
}
}
else
{