diff options
Diffstat (limited to 'src/core/function/ArchiveFileOperator.cpp')
-rw-r--r-- | src/core/function/ArchiveFileOperator.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/function/ArchiveFileOperator.cpp b/src/core/function/ArchiveFileOperator.cpp index 17f29df1..64c7389e 100644 --- a/src/core/function/ArchiveFileOperator.cpp +++ b/src/core/function/ArchiveFileOperator.cpp @@ -151,7 +151,8 @@ void GpgFrontend::ArchiveFileOperator::CreateArchive( #ifdef WINDOWS auto entry_path = - QString::fromStdWString(std::wstring(archive_entry_pathname_w(entry))).toUtf8() + QString::fromStdWString(std::wstring(archive_entry_pathname_w(entry))) + .toUtf8() .toStdString(); #else auto entry_path = std::string(archive_entry_pathname_utf8(entry)); @@ -161,7 +162,6 @@ void GpgFrontend::ArchiveFileOperator::CreateArchive( << archive_entry_size(entry) << " bytes" << "file type" << archive_entry_filetype(entry); - r = archive_write_header(a, entry); if (r < ARCHIVE_OK) { LOG(ERROR) << "archive_write_header() failed: " @@ -231,11 +231,11 @@ void GpgFrontend::ArchiveFileOperator::ExtractArchive( LOG(ERROR) << "cannot read from stdin"; } #ifdef WINDOWS - if (archive_read_open_filename_w(a, archive_path.wstring().c_str(), - 10240) != ARCHIVE_OK) { + if (archive_read_open_filename_w(a, archive_path.wstring().c_str(), 10240) != + ARCHIVE_OK) { #else - if (archive_read_open_filename(a, archive_path.u8string().c_str(), - 10240) != ARCHIVE_OK) { + if (archive_read_open_filename(a, archive_path.u8string().c_str(), 10240) != + ARCHIVE_OK) { #endif LOG(ERROR) << "archive_read_open_filename() failed: " << archive_error_string(a); |