aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GpgKey.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2022-07-23 14:54:51 +0000
committerGitHub <[email protected]>2022-07-23 14:54:51 +0000
commitb244320b2d228189767aa6d59febceb6b64527fb (patch)
tree179d34e2a3e84231fad72c4bbe9f74673d0b74d0 /src/core/model/GpgKey.cpp
parentMerge pull request #68 from saturneric/develop-2.0.8 (diff)
parentfeat(project): add rpm package support (diff)
downloadGpgFrontend-2.0.9.tar.gz
GpgFrontend-2.0.9.zip
Merge pull request #70 from saturneric/dev/2.0.8/saturnericv2.0.9
Develop 2.0.9.1
Diffstat (limited to 'src/core/model/GpgKey.cpp')
-rw-r--r--src/core/model/GpgKey.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/model/GpgKey.cpp b/src/core/model/GpgKey.cpp
index 4b9d11d3..ad88a649 100644
--- a/src/core/model/GpgKey.cpp
+++ b/src/core/model/GpgKey.cpp
@@ -45,9 +45,7 @@ bool GpgFrontend::GpgKey::operator<=(const GpgKey &o) const {
return this->GetId() < o.GetId();
}
-GpgFrontend::GpgKey::operator gpgme_key_t() const {
- return key_ref_.get();
-}
+GpgFrontend::GpgKey::operator gpgme_key_t() const { return key_ref_.get(); }
bool GpgFrontend::GpgKey::IsGood() const { return key_ref_ != nullptr; }
@@ -226,10 +224,9 @@ bool GpgFrontend::GpgKey::IsHasActualEncryptionCapability() const {
return false;
}
-
GpgFrontend::GpgKey GpgFrontend::GpgKey::Copy() const {
gpgme_key_ref(key_ref_.get());
- auto* _new_key_ref = key_ref_.get();
+ auto *_new_key_ref = key_ref_.get();
return GpgKey(std::move(_new_key_ref));
}