------------------------------------------------------------------------------
| 453 | |
| 454 | //------------------------------------------------------------------------------ |
| 455 | void vtkXMLReader::CloseVTKString() |
| 456 | { |
| 457 | if (!this->Stream) |
| 458 | { |
| 459 | vtkErrorMacro("String not open."); |
| 460 | return; |
| 461 | } |
| 462 | if (this->Stream == this->StringStream) |
| 463 | { |
| 464 | // We opened the string. Close it. |
| 465 | delete this->StringStream; |
| 466 | this->StringStream = nullptr; |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | //------------------------------------------------------------------------------ |
| 471 | void vtkXMLReader::CreateXMLParser() |