Skip to content
Snippets Groups Projects
Commit 9160dad6 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

COMP: silence compiler warning

parent 881ca2a4
No related branches found
No related tags found
No related merge requests found
...@@ -118,24 +118,22 @@ inline const T& Foam::Pair<T>::other(const T& a) const ...@@ -118,24 +118,22 @@ inline const T& Foam::Pair<T>::other(const T& a) const
if (first() == second()) if (first() == second())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Call to other only valid for Pair with differing" << "Call to other only valid for Pair with differing elements:"
<< " elements:" << *this << abort(FatalError); << *this << abort(FatalError);
} }
else if (a == first()) else if (a == first())
{ {
return second(); return second();
} }
else else if (a != second())
{
if (a != second())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Pair " << *this << "Pair " << *this
<< " does not contain " << a << abort(FatalError); << " does not contain " << a << abort(FatalError);
} }
return first(); return first();
} }
}
template<class T> template<class T>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment