aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgKeyOpera.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-22 16:34:46 +0000
committersaturneric <[email protected]>2023-12-22 16:34:46 +0000
commitee1a6bba20d71e710b169269565202d26794f44e (patch)
tree0f482b49dbbb0d07b9c216c12b6462e83e31673a /src/core/function/gpg/GpgKeyOpera.cpp
parentfix: slove cmake configuration problem on macOS (diff)
downloadGpgFrontend-ee1a6bba20d71e710b169269565202d26794f44e.tar.gz
GpgFrontend-ee1a6bba20d71e710b169269565202d26794f44e.zip
fix: slove compilation issue on macos
Diffstat (limited to 'src/core/function/gpg/GpgKeyOpera.cpp')
-rw-r--r--src/core/function/gpg/GpgKeyOpera.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/function/gpg/GpgKeyOpera.cpp b/src/core/function/gpg/GpgKeyOpera.cpp
index a89badc6..3ea9b365 100644
--- a/src/core/function/gpg/GpgKeyOpera.cpp
+++ b/src/core/function/gpg/GpgKeyOpera.cpp
@@ -199,9 +199,7 @@ void GpgKeyOpera::GenerateKey(const std::shared_ptr<GenKeyInfo>& params,
GpgGenKeyResult result;
if (CheckGpgError(err) == GPG_ERR_NO_ERROR) {
- auto temp_result =
- NewResult(gpgme_op_genkey_result(ctx.DefaultContext()));
- std::swap(temp_result, result);
+ result = NewResult(gpgme_op_genkey_result(ctx.DefaultContext()));
}
data_object->Swap({result});