BUG: comparison to static end() for hashtable lookup.

- just use the iterator method found() as an alternative and
  convenient way to avoid the issue with less typing.
This commit is contained in:
Mark Olesen
2017-05-01 21:28:41 +02:00
parent dc57c016ae
commit 7cceda620d
4 changed files with 7 additions and 7 deletions

View File

@ -115,7 +115,7 @@ void Foam::patchProbes::sampleAndWrite
if
(
iter != objectRegistry::end()
iter.found()
&& iter()->type()
== GeometricField<Type, fvPatchField, volMesh>::typeName
)
@ -167,7 +167,7 @@ void Foam::patchProbes::sampleAndWriteSurfaceFields
if
(
iter != objectRegistry::end()
iter.found()
&& iter()->type()
== GeometricField<Type, fvsPatchField, surfaceMesh>::typeName
)

View File

@ -141,7 +141,7 @@ void Foam::probes::sampleAndWrite(const fieldGroup<Type>& fields)
if
(
iter != objectRegistry::end()
iter.found()
&& iter()->type()
== GeometricField<Type, fvPatchField, volMesh>::typeName
)
@ -190,7 +190,7 @@ void Foam::probes::sampleAndWriteSurfaceFields(const fieldGroup<Type>& fields)
if
(
iter != objectRegistry::end()
iter.found()
&& iter()->type()
== GeometricField<Type, fvsPatchField, surfaceMesh>::typeName
)