aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgKeyManager.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-12 15:08:38 +0000
committersaturneric <[email protected]>2024-01-12 15:08:38 +0000
commit6983b5c1dd82d159236ebd06cf17f071cc9c1ee9 (patch)
treefc53f790e33546320b2ecd306a1a9ade6fbdfe7a /src/core/function/gpg/GpgKeyManager.h
parentfix: slove a heap-use-after-free issue (diff)
downloadGpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.tar.gz
GpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.zip
refactor: remove boost and use QString instead of std::filesystem::path
Diffstat (limited to 'src/core/function/gpg/GpgKeyManager.h')
-rw-r--r--src/core/function/gpg/GpgKeyManager.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/function/gpg/GpgKeyManager.h b/src/core/function/gpg/GpgKeyManager.h
index 39570d96..ecb345bf 100644
--- a/src/core/function/gpg/GpgKeyManager.h
+++ b/src/core/function/gpg/GpgKeyManager.h
@@ -35,10 +35,6 @@
#include "core/function/gpg/GpgContext.h"
#include "core/typedef/GpgTypedef.h"
-namespace boost::posix_time {
-class ptime;
-}
-
namespace GpgFrontend {
/**
@@ -64,8 +60,7 @@ class GPGFRONTEND_CORE_EXPORT GpgKeyManager
* @return if successful
*/
auto SignKey(const GpgKey& target, KeyArgsList& keys, const QString& uid,
- const std::unique_ptr<boost::posix_time::ptime>& expires)
- -> bool;
+ const std::unique_ptr<QDateTime>& expires) -> bool;
/**
* @brief
@@ -88,7 +83,7 @@ class GPGFRONTEND_CORE_EXPORT GpgKeyManager
* @return false
*/
auto SetExpire(const GpgKey& key, std::unique_ptr<GpgSubKey>& subkey,
- std::unique_ptr<boost::posix_time::ptime>& expires) -> bool;
+ std::unique_ptr<QDateTime>& expires) -> bool;
/**
* @brief