| 372 | } |
| 373 | |
| 374 | bool cmArchiveWrite::Open() |
| 375 | { |
| 376 | if (!this->Error.empty()) { |
| 377 | return false; |
| 378 | } |
| 379 | if (archive_write_open( |
| 380 | this->Archive, this, nullptr, |
| 381 | reinterpret_cast<archive_write_callback*>(&Callback::Write), |
| 382 | nullptr) != ARCHIVE_OK) { |
| 383 | this->Error = |
| 384 | cmStrCat("archive_write_open: ", cm_archive_error_string(this->Archive)); |
| 385 | return false; |
| 386 | } |
| 387 | return true; |
| 388 | } |
| 389 | |
| 390 | cmArchiveWrite::~cmArchiveWrite() |
| 391 | { |
nothing calls this directly
no test coverage detected