Skip to content
Snippets Groups Projects
Commit da64febc authored by andy's avatar andy
Browse files

BUG: Corrected use of strict in lookup class

parent 16d5e020
Branches
Tags
No related merge requests found
......@@ -34,7 +34,7 @@ Foam::wordList Foam::objectRegistry::names() const
wordList objectNames(size());
label count=0;
for (const_iterator iter = begin(); iter != end(); ++iter)
forAllConstIter(HashTable<regIOobject*>, *this, iter)
{
if (isA<Type>(*iter()))
{
......@@ -56,9 +56,13 @@ Foam::HashTable<const Type*> Foam::objectRegistry::lookupClass
{
HashTable<const Type*> objectsOfClass(size());
for (const_iterator iter = begin(); iter != end(); ++iter)
forAllConstIter(HashTable<regIOobject*>, *this, iter)
{
if ((strict && isType<Type>(*iter())) || isA<Type>(*iter()))
if
(
(strict && isType<Type>(*iter()))
|| (!strict && isA<Type>(*iter()))
)
{
objectsOfClass.insert
(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment