------------------------------------------------------------------------------
| 135 | |
| 136 | //------------------------------------------------------------------------------ |
| 137 | void vtkXMLPDataWriter::SetupPieceFileNameExtension() |
| 138 | { |
| 139 | this->Superclass::SetupPieceFileNameExtension(); |
| 140 | |
| 141 | // Create a temporary piece writer and then initialize the extension. |
| 142 | vtkXMLWriter* writer = this->CreatePieceWriter(0); |
| 143 | const char* ext = writer->GetDefaultFileExtension(); |
| 144 | this->PieceFileNameExtension = new char[strlen(ext) + 2]; |
| 145 | this->PieceFileNameExtension[0] = '.'; |
| 146 | strcpy(this->PieceFileNameExtension + 1, ext); |
| 147 | writer->Delete(); |
| 148 | } |
| 149 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected