| 683 | } |
| 684 | |
| 685 | ZipFile* ZipFile::createWithData(Data data) |
| 686 | { |
| 687 | ZipFile* zip = new ZipFile(); |
| 688 | if (zip->initWithData(std::move(data))) |
| 689 | { |
| 690 | return zip; |
| 691 | } |
| 692 | else |
| 693 | { |
| 694 | delete zip; |
| 695 | return nullptr; |
| 696 | } |
| 697 | } |
| 698 | |
| 699 | ZipFile::ZipFile() : _data(new ZipFilePrivate()) |
| 700 | { |
nothing calls this directly
no test coverage detected