diff options
author | Saturn&Eric <[email protected]> | 2022-07-23 14:54:51 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-23 14:54:51 +0000 |
commit | b244320b2d228189767aa6d59febceb6b64527fb (patch) | |
tree | 179d34e2a3e84231fad72c4bbe9f74673d0b74d0 /src/core/model/GpgKey.cpp | |
parent | Merge pull request #68 from saturneric/develop-2.0.8 (diff) | |
parent | feat(project): add rpm package support (diff) | |
download | GpgFrontend-b244320b2d228189767aa6d59febceb6b64527fb.tar.gz GpgFrontend-b244320b2d228189767aa6d59febceb6b64527fb.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.cpp | 7 |
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)); } |