------------------------------------------------------------------------------
| 495 | |
| 496 | //------------------------------------------------------------------------------ |
| 497 | void vtkNetCDFReader::SetFileName(const char* filename) |
| 498 | { |
| 499 | if (this->FileName == filename) |
| 500 | return; |
| 501 | if (this->FileName && filename && (strcmp(this->FileName, filename) == 0)) |
| 502 | { |
| 503 | return; |
| 504 | } |
| 505 | |
| 506 | delete[] this->FileName; |
| 507 | this->FileName = nullptr; |
| 508 | |
| 509 | if (filename) |
| 510 | { |
| 511 | this->FileName = new char[strlen(filename) + 1]; |
| 512 | strcpy(this->FileName, filename); |
| 513 | } |
| 514 | |
| 515 | this->Modified(); |
| 516 | this->FileNameMTime.Modified(); |
| 517 | } |
| 518 | |
| 519 | //------------------------------------------------------------------------------ |
| 520 | void vtkNetCDFReader::SelectionModifiedCallback(vtkObject*, unsigned long, void* clientdata, void*) |