Commit 02a76389 authored by Ken Martin's avatar Ken Martin
Browse files

hopefully fix a warning

parent ffdf297b
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <sys/stat.h> #include <sys/stat.h>
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkMetaImageWriter, "1.2"); vtkCxxRevisionMacro(vtkMetaImageWriter, "1.3");
vtkStandardNewMacro(vtkMetaImageWriter); vtkStandardNewMacro(vtkMetaImageWriter);
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
...@@ -98,7 +98,7 @@ void vtkMetaImageWriter::Write() ...@@ -98,7 +98,7 @@ void vtkMetaImageWriter::Write()
delete [] rfname; delete [] rfname;
} }
ofstream ofs(this->MHDFileName); ofstream ofs(this->MHDFileName, ios::out);
if ( !ofs ) if ( !ofs )
{ {
vtkErrorMacro("Cannot open file: " << this->MHDFileName << " for writing"); vtkErrorMacro("Cannot open file: " << this->MHDFileName << " for writing");
......
Supports Markdown
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