aboutsummaryrefslogtreecommitdiffstats
path: root/include/gpg/Signature.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-22 15:58:59 +0000
committerSaturneric <[email protected]>2021-05-22 15:58:59 +0000
commitd9121e76c7eeb63b23a6a772d38e61b60abfe93d (patch)
tree965f9f27bba242a584b73ef4947ce54fa652390f /include/gpg/Signature.h
parentExpand and improve GpgKey; (diff)
downloadGpgFrontend-d9121e76c7eeb63b23a6a772d38e61b60abfe93d.tar.gz
GpgFrontend-d9121e76c7eeb63b23a6a772d38e61b60abfe93d.zip
Enhance code robustness;
Improve performance for GpgKey; Fix code defects. Makes the update response to changes in the key database directed. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r--include/gpg/Signature.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/gpg/Signature.h b/include/gpg/Signature.h
index d361453d..3fa4414b 100644
--- a/include/gpg/Signature.h
+++ b/include/gpg/Signature.h
@@ -53,13 +53,12 @@ struct Signature {
Signature() = default;
- explicit Signature(gpgme_key_sig_t key_sig):
- revoked(key_sig->revoked), expired(key_sig->expired), invalid(key_sig->invalid),
- exportable(key_sig->exportable), pubkey_algo(gpgme_pubkey_algo_name(key_sig->pubkey_algo)),
- name(key_sig->name), email(key_sig->email), comment(key_sig->comment),
- create_time(QDateTime::fromTime_t(key_sig->timestamp)), expire_time(QDateTime::fromTime_t(key_sig->expires)){
+ explicit Signature(gpgme_key_sig_t key_sig);
- }
+ Signature(Signature &&) noexcept = default;
+ Signature(const Signature &) = default;
+ Signature& operator=(Signature &&) noexcept = default;
+ Signature& operator=(const Signature &) = default;
};