Commit a0db130f authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

vtkCSVWriter: fix build issues.

parent 809ca595
......@@ -193,6 +193,8 @@ class vtkCSVWriter::CSVFile
std::vector<std::pair<std::string, int> > ColumnInfo;
public:
CSVFile() = default;
int Open(const char* filename)
{
if (!filename)
......@@ -200,7 +202,7 @@ public:
return vtkErrorCode::NoFileNameError;
}
this->Stream = ofstream(filename, ios::out);
this->Stream.open(filename, ios::out);
if (this->Stream.fail())
{
return vtkErrorCode::CannotOpenFileError;
......@@ -286,6 +288,10 @@ public:
this->Stream << "\n";
}
}
private:
CSVFile(const CSVFile&) = delete;
void operator=(const CSVFile&) = delete;
};
//-----------------------------------------------------------------------------
......
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