From d9121e76c7eeb63b23a6a772d38e61b60abfe93d Mon Sep 17 00:00:00 2001 From: Saturneric Date: Sat, 22 May 2021 23:58:59 +0800 Subject: 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 --- src/gpg/UID.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/gpg/UID.cpp (limited to 'src/gpg/UID.cpp') diff --git a/src/gpg/UID.cpp b/src/gpg/UID.cpp new file mode 100644 index 00000000..a1147eec --- /dev/null +++ b/src/gpg/UID.cpp @@ -0,0 +1,16 @@ +// +// Created by eric on 2021/5/22. +// + +#include "gpg/UID.h" + +UID::UID(gpgme_user_id_t user_id) : + uid(user_id->uid), name(user_id->name), email(user_id->email), comment(user_id->comment) { + + auto sig = user_id->signatures; + + while (sig != nullptr) { + signatures.push_back(Signature(sig)); + } + +} \ No newline at end of file -- cgit v1.2.3