diff options
author | Saturneric <[email protected]> | 2021-05-22 15:58:59 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-05-22 15:58:59 +0000 |
commit | d9121e76c7eeb63b23a6a772d38e61b60abfe93d (patch) | |
tree | 965f9f27bba242a584b73ef4947ce54fa652390f /include/gpg/UID.h | |
parent | Expand and improve GpgKey; (diff) | |
download | GpgFrontend-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 'include/gpg/UID.h')
-rw-r--r-- | include/gpg/UID.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/gpg/UID.h b/include/gpg/UID.h index ecd361fd..d7a0f3bd 100644 --- a/include/gpg/UID.h +++ b/include/gpg/UID.h @@ -45,16 +45,13 @@ struct UID { UID() = default; - explicit UID(gpgme_user_id_t user_id): - uid(user_id->uid), name(user_id->name), email(user_id->email), comment(user_id->comment) { + explicit UID(gpgme_user_id_t user_id); - auto sig = user_id->signatures; + UID(UID &&) noexcept = default; + UID(const UID &) = default; + UID& operator=(UID &&) noexcept = default; + UID& operator=(const UID &) = default; - while (sig != nullptr) { - signatures.push_back(Signature(sig)); - } - - } }; #endif //GPGFRONTEND_UID_H
\ No newline at end of file |