From 4f9ee73ffdda5a495d25ebf4f769a4c43aa78295 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Tue, 7 Dec 2021 04:38:05 +0800 Subject: Test & Improve UI --- src/gpg/function/GpgKeyManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gpg/function/GpgKeyManager.cpp') diff --git a/src/gpg/function/GpgKeyManager.cpp b/src/gpg/function/GpgKeyManager.cpp index 9e24b3d6..998c27a7 100644 --- a/src/gpg/function/GpgKeyManager.cpp +++ b/src/gpg/function/GpgKeyManager.cpp @@ -33,7 +33,7 @@ bool GpgFrontend::GpgKeyManager::signKey( const GpgFrontend::GpgKey& target, GpgFrontend::KeyArgsList& keys, const std::string& uid, - const std::unique_ptr& expires) { + const std::unique_ptr& expires) { using namespace boost::posix_time; BasicOperator::GetInstance().SetSigners(keys); @@ -44,7 +44,7 @@ bool GpgFrontend::GpgKeyManager::signKey( if (expires == nullptr) flags |= GPGME_KEYSIGN_NOEXPIRE; else - expires_time_t = to_time_t(ptime(*expires)); + expires_time_t = to_time_t(*expires); auto err = check_gpg_error(gpgme_op_keysign( ctx, gpgme_key_t(target), uid.c_str(), expires_time_t, flags)); @@ -70,7 +70,7 @@ bool GpgFrontend::GpgKeyManager::revSign( bool GpgFrontend::GpgKeyManager::setExpire( const GpgFrontend::GpgKey& key, std::unique_ptr& subkey, - std::unique_ptr& expires) { + std::unique_ptr& expires) { using namespace boost::posix_time; unsigned long expires_time = 0; -- cgit v1.2.3