PVS: V1024 The 'file' stream is checked for EOF before reading from it, but is not checked after reading. Potential use of invalid data
This commit is contained in:
@@ -86,8 +86,7 @@ App::DocumentObjectExecReturn *RayProject::execute(void)
|
||||
ofstream ofile(tempName.c_str());
|
||||
|
||||
// copy the input of the resource file
|
||||
while (!file.eof()) {
|
||||
getline (file,line);
|
||||
while (getline (file,line)) {
|
||||
// check if the marker in the template is found
|
||||
if(line.find("//RaytracingContent") == string::npos)
|
||||
// if not - write through
|
||||
|
||||
Reference in New Issue
Block a user