PVS: fixes several issues
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user