STYLE: use forAllIter, forAllConstIter in more places

ENH: change some iterator -> const_iterator access

BUG: found some places with forAllIter and ::iterator !
This commit is contained in:
Mark Olesen
2010-04-13 09:10:36 +02:00
parent 5636df2b5a
commit 874120350c
37 changed files with 139 additions and 338 deletions

View File

@ -96,7 +96,7 @@ void Foam::reconstructLagrangianFields
const IOobjectList& objects
)
{
word fieldClassName(IOField<Type>::typeName);
const word fieldClassName(IOField<Type>::typeName);
IOobjectList fields = objects.lookupClass(fieldClassName);
@ -105,7 +105,7 @@ void Foam::reconstructLagrangianFields
Info<< " Reconstructing lagrangian "
<< fieldClassName << "s\n" << endl;
forAllIter(IOobjectList, fields, fieldIter)
forAllConstIter(IOobjectList, fields, fieldIter)
{
Info<< " " << fieldIter()->name() << endl;
reconstructLagrangianField<Type>

View File

@ -52,7 +52,7 @@ void Foam::reconstructLagrangianPositions
Cloud<passiveParticle> lpi(meshes[i], cloudName, false);
forAllIter(Cloud<passiveParticle>, lpi, iter)
forAllConstIter(Cloud<passiveParticle>, lpi, iter)
{
const passiveParticle& ppi = iter();