Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
9160dad6
Commit
9160dad6
authored
Aug 06, 2018
by
Mark OLESEN
Browse files
COMP: silence compiler warning
parent
881ca2a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/Pair/PairI.H
View file @
9160dad6
...
...
@@ -118,23 +118,21 @@ inline const T& Foam::Pair<T>::other(const T& a) const
if
(
first
()
==
second
())
{
FatalErrorInFunction
<<
"Call to other only valid for Pair with differing"
<<
" elements:"
<<
*
this
<<
abort
(
FatalError
);
<<
"Call to other only valid for Pair with differing
elements:
"
<<
*
this
<<
abort
(
FatalError
);
}
else
if
(
a
==
first
())
{
return
second
();
}
else
else
if
(
a
!=
second
())
{
if
(
a
!=
second
())
{
FatalErrorInFunction
<<
"Pair "
<<
*
this
<<
" does not contain "
<<
a
<<
abort
(
FatalError
);
}
return
first
();
FatalErrorInFunction
<<
"Pair "
<<
*
this
<<
" does not contain "
<<
a
<<
abort
(
FatalError
);
}
return
first
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment