diff options
author | Saturneric <[email protected]> | 2021-09-05 21:41:00 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-09-05 21:41:00 +0000 |
commit | e2d30cc0194db74b77e3c06dbaf9c597bb82c860 (patch) | |
tree | d9df5302e59c59135495ee81657422cebd7b6092 /src/gpg/model/GpgKey.cpp | |
parent | Rewrite the core. (diff) | |
download | GpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.tar.gz GpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.zip |
Adjust the code structure.
Introduce log library.
Remove Qt from the core code.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/model/GpgKey.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpg/model/GpgKey.cpp b/src/gpg/model/GpgKey.cpp index 800c1c23..fa52c6f2 100644 --- a/src/gpg/model/GpgKey.cpp +++ b/src/gpg/model/GpgKey.cpp @@ -24,9 +24,7 @@ #include "gpg/model/GpgKey.h" -GpgFrontend::GpgKey::GpgKey(gpgme_key_t &&key) - : _key_ref(std::move(key), - [&](gpgme_key_t key) { gpgme_key_release(key); }) {} +GpgFrontend::GpgKey::GpgKey(gpgme_key_t &&key) : _key_ref(std::move(key)) {} GpgFrontend::GpgKey::GpgKey(GpgKey &&k) noexcept { swap(_key_ref, k._key_ref); } |