aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/ArchiveFileOperator.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-07-22 17:26:53 +0000
committerSaturneric <[email protected]>2022-07-22 17:26:53 +0000
commitf3ff43494674b9eeeb7d2514d21aa15f477b4092 (patch)
tree96d4986e25fc5277c67ab7a28f05fa863b867ccd /src/core/function/ArchiveFileOperator.cpp
parentfeat(ui): use general main window and dialog class (diff)
downloadGpgFrontend-f3ff43494674b9eeeb7d2514d21aa15f477b4092.tar.gz
GpgFrontend-f3ff43494674b9eeeb7d2514d21aa15f477b4092.zip
style(src): reformat code
Diffstat (limited to 'src/core/function/ArchiveFileOperator.cpp')
-rw-r--r--src/core/function/ArchiveFileOperator.cpp12
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);