diff options
author | saturneric <[email protected]> | 2024-12-13 15:22:33 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-13 15:22:33 +0000 |
commit | f7a00c58d2824f49ecaafc0152fc0b8213772e46 (patch) | |
tree | d012e5fac4ff9f48cd10381a0b79de0294d28d18 /src/core/model/GpgUID.h | |
parent | doc: update SECURITY.md (diff) | |
download | GpgFrontend-f7a00c58d2824f49ecaafc0152fc0b8213772e46.tar.gz GpgFrontend-f7a00c58d2824f49ecaafc0152fc0b8213772e46.zip |
refactor: using qt containers instead of std containers
Diffstat (limited to 'src/core/model/GpgUID.h')
-rw-r--r-- | src/core/model/GpgUID.h | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/src/core/model/GpgUID.h b/src/core/model/GpgUID.h index 316b5c68..d8ac47f2 100644 --- a/src/core/model/GpgUID.h +++ b/src/core/model/GpgUID.h @@ -85,18 +85,18 @@ class GPGFRONTEND_CORE_EXPORT GpgUID { /** * @brief * - * @return std::unique_ptr<std::vector<GpgTOFUInfo>> + * @return std::unique_ptr<QContainer<GpgTOFUInfo>> */ [[nodiscard]] auto GetTofuInfos() const - -> std::unique_ptr<std::vector<GpgTOFUInfo>>; + -> std::unique_ptr<QContainer<GpgTOFUInfo>>; /** * @brief * - * @return std::unique_ptr<std::vector<GpgKeySignature>> + * @return std::unique_ptr<QContainer<GpgKeySignature>> */ [[nodiscard]] auto GetSignatures() const - -> std::unique_ptr<std::vector<GpgKeySignature>>; + -> std::unique_ptr<QContainer<GpgKeySignature>>; /** * @brief Construct a new Gpg U I D object @@ -112,39 +112,20 @@ class GPGFRONTEND_CORE_EXPORT GpgUID { explicit GpgUID(gpgme_user_id_t uid); /** - * @brief Construct a new Gpg U I D object - * - * @param o - */ - GpgUID(GpgUID &&o) noexcept; - - /** - * @brief Construct a new Gpg U I D object - * - */ - GpgUID(const GpgUID &) = delete; - - /** * @brief * - * @param o - * @return GpgUID& */ - auto operator=(GpgUID &&o) noexcept -> GpgUID &; + GpgUID(const GpgUID &); /** * @brief * * @return GpgUID& */ - auto operator=(const GpgUID &) -> GpgUID & = delete; + auto operator=(const GpgUID &) -> GpgUID &; private: - using UidRefHandler = - std::unique_ptr<struct _gpgme_user_id, - std::function<void(gpgme_user_id_t)>>; ///< - - UidRefHandler uid_ref_ = nullptr; ///< + gpgme_user_id_t uid_ref_ = nullptr; ///< }; } // namespace GpgFrontend |