aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/ArchiveFileOperator.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-11-06 12:49:44 +0000
committersaturneric <[email protected]>2023-11-06 12:49:44 +0000
commit889cb8092381b073a0f4a0411a4ede04cd7bdd14 (patch)
tree87ae80ee7be8b426afe869baff7c99384bbafaaa /src/core/function/ArchiveFileOperator.cpp
parentrefactor: clean up core's codes (diff)
downloadGpgFrontend-889cb8092381b073a0f4a0411a4ede04cd7bdd14.tar.gz
GpgFrontend-889cb8092381b073a0f4a0411a4ede04cd7bdd14.zip
refactor: improve the code structure of core
Diffstat (limited to 'src/core/function/ArchiveFileOperator.cpp')
-rw-r--r--src/core/function/ArchiveFileOperator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/function/ArchiveFileOperator.cpp b/src/core/function/ArchiveFileOperator.cpp
index 4fc8f5df..27d18803 100644
--- a/src/core/function/ArchiveFileOperator.cpp
+++ b/src/core/function/ArchiveFileOperator.cpp
@@ -170,10 +170,10 @@ void GpgFrontend::ArchiveFileOperator::CreateArchive(
if (r > ARCHIVE_FAILED) {
QByteArray buff;
#ifdef WINDOWS
- FileOperator::ReadFile(
- QString::fromStdWString(archive_entry_sourcepath_w(entry)), buff);
+ ReadFile(QString::fromStdWString(archive_entry_sourcepath_w(entry)),
+ buff);
#else
- FileOperator::ReadFile(archive_entry_sourcepath(entry), buff);
+ ReadFile(archive_entry_sourcepath(entry), buff);
#endif
archive_write_data(a, buff.data(), buff.size());
}