Skip to content
Snippets Groups Projects
Commit 9c6b8c18 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[GL/IO] TIN; Fix duplicate if condition.

Original CppCheck message is:
"Same expression on both sides of '&&'.. Finding the same expression on both sides of an operator is suspicious and might indicate a cut and paste or logic error. Please examine this code carefully to determine if it is correct."

DON'T COPY & PASTE!
parent 694bba66
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,8 @@ GeoLib::Surface* TINInterface::readTIN(std::string const& fname, ...@@ -112,7 +112,8 @@ GeoLib::Surface* TINInterface::readTIN(std::string const& fname,
// create new Triangle // create new Triangle
if (pnt_pos_0 != std::numeric_limits<std::size_t>::max() && if (pnt_pos_0 != std::numeric_limits<std::size_t>::max() &&
pnt_pos_1 != std::numeric_limits<std::size_t>::max() && pnt_pos_1 != std::numeric_limits<std::size_t>::max() &&
pnt_pos_1 != std::numeric_limits<std::size_t>::max()) { pnt_pos_2 != std::numeric_limits<std::size_t>::max())
{
sfc->addTriangle(pnt_pos_0, pnt_pos_1, pnt_pos_2); sfc->addTriangle(pnt_pos_0, pnt_pos_1, pnt_pos_2);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment