Commit a6bbcc6a authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

ERR: Fix warnings by renaming the variable

parent 90b37ea7
......@@ -23,7 +23,7 @@
#include <sys/stat.h>
//----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkMetaImageWriter, "1.3");
vtkCxxRevisionMacro(vtkMetaImageWriter, "1.4");
vtkStandardNewMacro(vtkMetaImageWriter);
//----------------------------------------------------------------------------
......@@ -98,8 +98,8 @@ void vtkMetaImageWriter::Write()
delete [] rfname;
}
ofstream ofs(this->MHDFileName, ios::out);
if ( !ofs )
ofstream ofs_with_warning_C4701(this->MHDFileName, ios::out);
if ( !ofs_with_warning_C4701 )
{
vtkErrorMacro("Cannot open file: " << this->MHDFileName << " for writing");
return;
......@@ -161,7 +161,7 @@ void vtkMetaImageWriter::Write()
}
}
ofs
ofs_with_warning_C4701
<< "ObjectType = Image" << endl
<< "NDims = " << ndims << endl
<< "BinaryData = True" << endl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment