diff options
author | Saturneric <[email protected]> | 2022-07-22 17:26:53 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-07-22 17:26:53 +0000 |
commit | f3ff43494674b9eeeb7d2514d21aa15f477b4092 (patch) | |
tree | 96d4986e25fc5277c67ab7a28f05fa863b867ccd /src/core/model/GpgKey.cpp | |
parent | feat(ui): use general main window and dialog class (diff) | |
download | GpgFrontend-f3ff43494674b9eeeb7d2514d21aa15f477b4092.tar.gz GpgFrontend-f3ff43494674b9eeeb7d2514d21aa15f477b4092.zip |
style(src): reformat code
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)); } |