Commit e90c46ae authored by Zack Galbreath's avatar Zack Galbreath
Browse files

fix failing tests revealed by gerrit

subclasses of vtkXMLWriter should now call OpenStream & CloseStream
as opposed to OpenFile & CloseFile.

Change-Id: I39ccdc711d07e96763fc941b5fcd80b1da6b38c5
parent 52d62550
......@@ -141,7 +141,7 @@ int vtkXMLStructuredDataWriter::ProcessRequest(
int result = 1;
if (this->CurrentPiece == 0 && this->CurrentTimeIndex == 0 )
{
if (!this->OpenFile())
if (!this->OpenStream())
{
return 0;
}
......@@ -201,7 +201,7 @@ int vtkXMLStructuredDataWriter::ProcessRequest(
return 0;
}
this->CloseFile();
this->CloseStream();
this->CurrentTimeIndex = 0; // Reset
}
}
......
......@@ -157,7 +157,7 @@ int vtkXMLUnstructuredDataWriter::ProcessRequest(vtkInformation* request,
float wholeProgressRange[2] = {0,1};
this->SetProgressRange(wholeProgressRange, 0, 1);
if (!this->OpenFile())
if (!this->OpenStream())
{
this->NumberOfPieces = numPieces;
return 0;
......@@ -225,7 +225,7 @@ int vtkXMLUnstructuredDataWriter::ProcessRequest(vtkInformation* request,
return 0;
}
this->CloseFile();
this->CloseStream();
this->CurrentTimeIndex = 0; // Reset
}
}
......
......@@ -632,7 +632,7 @@ int vtkXMLWriter::RequestData(vtkInformation* vtkNotUsed( request ),
this->SetErrorCode(vtkErrorCode::NoError);
// Make sure we have a file to write.
if(!this->Stream && !this->FileName)
if(!this->Stream && !this->FileName && !this->WriteToOutputString)
{
vtkErrorMacro("Writer called with no FileName set.");
this->SetErrorCode(vtkErrorCode::NoFileNameError);
......
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