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/GpgSubKey.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/GpgSubKey.h')
-rw-r--r-- | src/core/model/GpgSubKey.h | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/core/model/GpgSubKey.h b/src/core/model/GpgSubKey.h index e9eea6ea..58c6298a 100644 --- a/src/core/model/GpgSubKey.h +++ b/src/core/model/GpgSubKey.h @@ -185,30 +185,15 @@ class GPGFRONTEND_CORE_EXPORT GpgSubKey { /** * @brief Construct a new Gpg Sub Key object * - * @param o - */ - GpgSubKey(GpgSubKey&& o) noexcept; - - /** - * @brief Construct a new Gpg Sub Key object - * - */ - GpgSubKey(const GpgSubKey&) = delete; - - /** - * @brief - * - * @param o - * @return GpgSubKey& */ - auto operator=(GpgSubKey&& o) noexcept -> GpgSubKey&; + GpgSubKey(const GpgSubKey&); /** * @brief * * @return GpgSubKey& */ - auto operator=(const GpgSubKey&) -> GpgSubKey& = delete; + auto operator=(const GpgSubKey&) -> GpgSubKey&; /** * @brief @@ -220,11 +205,7 @@ class GPGFRONTEND_CORE_EXPORT GpgSubKey { auto operator==(const GpgSubKey& o) const -> bool; private: - using SubkeyRefHandler = - std::unique_ptr<struct _gpgme_subkey, - std::function<void(gpgme_subkey_t)>>; ///< - - SubkeyRefHandler subkey_ref_ = nullptr; ///< + gpgme_subkey_t subkey_ref_ = nullptr; ///< }; } // namespace GpgFrontend |