Commit d5e2b735 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: simplify logic statement

parent 92fa5a19
......@@ -127,11 +127,7 @@ Foam::HashTable<const Type*> Foam::objectRegistry::lookupClass
forAllConstIter(HashTable<regIOobject*>, *this, iter)
{
if
(
(strict && isType<Type>(*iter()))
|| (!strict && isA<Type>(*iter()))
)
if (strict ? isType<Type>(*iter()) : isA<Type>(*iter()))
{
objectsOfClass.insert
(
......@@ -155,11 +151,7 @@ Foam::HashTable<Type*> Foam::objectRegistry::lookupClass
forAllIter(HashTable<regIOobject*>, *this, iter)
{
if
(
(strict && isType<Type>(*iter()))
|| (!strict && isA<Type>(*iter()))
)
if (strict ? isType<Type>(*iter()) : isA<Type>(*iter()))
{
objectsOfClass.insert
(
......
Markdown is supported
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