aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowSlotFunction.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-23 12:07:26 +0000
committersaturneric <[email protected]>2023-12-23 12:07:26 +0000
commit4f29479ec7c128ab035d76e32006d8b0c7d0b9f1 (patch)
tree006f58359a2a0ade32513139a969cf4650c52234 /src/ui/main_window/MainWindowSlotFunction.cpp
parentfix: gen key test cases typeid rtti issues (diff)
downloadGpgFrontend-4f29479ec7c128ab035d76e32006d8b0c7d0b9f1.tar.gz
GpgFrontend-4f29479ec7c128ab035d76e32006d8b0c7d0b9f1.zip
fix: solve all issues of test cases on macos m1
Diffstat (limited to 'src/ui/main_window/MainWindowSlotFunction.cpp')
-rw-r--r--src/ui/main_window/MainWindowSlotFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp
index eea2075c..728818ab 100644
--- a/src/ui/main_window/MainWindowSlotFunction.cpp
+++ b/src/ui/main_window/MainWindowSlotFunction.cpp
@@ -45,7 +45,6 @@
#include "core/typedef/GpgTypedef.h"
#include "core/utils/CommonUtils.h"
#include "core/utils/GpgUtils.h"
-#include "spdlog/spdlog.h"
#include "ui/UserInterfaceUtils.h"
#include "ui/dialog/SignersPicker.h"
#include "ui/dialog/help/AboutDialog.h"
@@ -272,7 +271,7 @@ void MainWindow::slot_decrypt() {
GpgDecrResult result = nullptr;
auto decrypted = GpgFrontend::SecureCreateSharedObject<ByteArray>();
GpgError error = GpgFrontend::GpgBasicOperator::GetInstance().Decrypt(
- buffer, decrypted, result);
+ GFBuffer(buffer), decrypted, result);
data_object->Swap({error, result, decrypted});
} catch (const std::runtime_error& e) {