PVS: fixes several issues

This commit is contained in:
wmayer
2019-03-13 01:19:00 +01:00
parent 8f6bf8eafc
commit 51aeb5867a
4 changed files with 18 additions and 8 deletions

View File

@@ -1380,12 +1380,11 @@ bool MeshInput::LoadInventor (std::istream &rstrIn)
std::streambuf* buf = rstrIn.rdbuf();
if (!buf)
return false;
if (buf) {
std::streamoff ulCurr;
ulCurr = buf->pubseekoff(0, std::ios::cur, std::ios::in);
ulSize = buf->pubseekoff(0, std::ios::end, std::ios::in);
buf->pubseekoff(ulCurr, std::ios::beg, std::ios::in);
}
std::streamoff ulCurr;
ulCurr = buf->pubseekoff(0, std::ios::cur, std::ios::in);
ulSize = buf->pubseekoff(0, std::ios::end, std::ios::in);
buf->pubseekoff(ulCurr, std::ios::beg, std::ios::in);
std::string line;
MeshGeomFacet clFacet;