Commit dfb62587 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot

Merge topic 'csv-build-fixes' into release

a0db130f vtkCSVWriter: fix build issues.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel's avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !3510
parents 809ca595 a0db130f
......@@ -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