aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/GpgKeyGetter.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-09-10 23:58:09 +0000
committerSaturneric <[email protected]>2021-09-10 16:06:21 +0000
commit4e076fa1982812ea7d1222c7e981879799ca8853 (patch)
tree1b96ae4a6296ca0f7b9df8ce3a3c7339643bf1f0 /src/gpg/function/GpgKeyGetter.cpp
parentAdjust the code structure. (diff)
downloadGpgFrontend-4e076fa1982812ea7d1222c7e981879799ca8853.tar.gz
GpgFrontend-4e076fa1982812ea7d1222c7e981879799ca8853.zip
Continue to optimize and improve the code.
Diffstat (limited to 'src/gpg/function/GpgKeyGetter.cpp')
-rw-r--r--src/gpg/function/GpgKeyGetter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpg/function/GpgKeyGetter.cpp b/src/gpg/function/GpgKeyGetter.cpp
index f8e361bd..88f80fbf 100644
--- a/src/gpg/function/GpgKeyGetter.cpp
+++ b/src/gpg/function/GpgKeyGetter.cpp
@@ -30,14 +30,14 @@ GpgFrontend::GpgKey GpgFrontend::GpgKeyGetter::GetKey(const std::string &fpr) {
gpgme_get_key(ctx, fpr.c_str(), &_p_key, 1);
if (_p_key == nullptr)
LOG(WARNING) << "GpgKeyGetter GetKey _p_key Null";
- return std::move(GpgKey(std::move(_p_key)));
+ return GpgKey(std::move(_p_key));
}
GpgFrontend::GpgKey
GpgFrontend::GpgKeyGetter::GetPubkey(const std::string &fpr) {
gpgme_key_t _p_key;
gpgme_get_key(ctx, fpr.c_str(), &_p_key, 0);
- return std::move(GpgKey(std::move(_p_key)));
+ return GpgKey(std::move(_p_key));
}
GpgFrontend::KeyListPtr GpgFrontend::GpgKeyGetter::FetchKey() {