aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GpgSubKey.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-12-13 15:22:33 +0000
committersaturneric <[email protected]>2024-12-13 15:22:33 +0000
commitf7a00c58d2824f49ecaafc0152fc0b8213772e46 (patch)
treed012e5fac4ff9f48cd10381a0b79de0294d28d18 /src/core/model/GpgSubKey.h
parentdoc: update SECURITY.md (diff)
downloadGpgFrontend-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.h25
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