aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgKeyGetter.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-30 06:52:29 +0000
committersaturneric <[email protected]>2023-10-30 06:52:29 +0000
commit5d7b1d5493df8723259eca0613a9ce0af6077289 (patch)
tree12c0c820e956a1182d21d5897dc85610732767fd /src/core/function/gpg/GpgKeyGetter.cpp
parentchore: add project infos in cmake config file (diff)
downloadGpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.tar.gz
GpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.zip
style: improve code style of core
Diffstat (limited to 'src/core/function/gpg/GpgKeyGetter.cpp')
-rw-r--r--src/core/function/gpg/GpgKeyGetter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/function/gpg/GpgKeyGetter.cpp b/src/core/function/gpg/GpgKeyGetter.cpp
index 09c77c28..070699fa 100644
--- a/src/core/function/gpg/GpgKeyGetter.cpp
+++ b/src/core/function/gpg/GpgKeyGetter.cpp
@@ -96,10 +96,10 @@ class GpgKeyGetter::Impl : public SingletonFunctionObject<GpgKeyGetter::Impl> {
GpgError err = gpgme_op_keylist_start(ctx_, nullptr, 0);
// for debug
- assert(check_gpg_error_2_err_code(err) == GPG_ERR_NO_ERROR);
+ assert(CheckGpgError(err) == GPG_ERR_NO_ERROR);
// return when error
- if (check_gpg_error_2_err_code(err) != GPG_ERR_NO_ERROR) return;
+ if (CheckGpgError(err) != GPG_ERR_NO_ERROR) return;
{
// get the lock
@@ -123,10 +123,10 @@ class GpgKeyGetter::Impl : public SingletonFunctionObject<GpgKeyGetter::Impl> {
static_cast<void*>(&keys_cache_), static_cast<void*>(this));
// for debug
- assert(check_gpg_error_2_err_code(err, GPG_ERR_EOF) == GPG_ERR_EOF);
+ assert(CheckGpgError2ErrCode(err, GPG_ERR_EOF) == GPG_ERR_EOF);
err = gpgme_op_keylist_end(ctx_);
- assert(check_gpg_error_2_err_code(err, GPG_ERR_EOF) == GPG_ERR_NO_ERROR);
+ assert(CheckGpgError2ErrCode(err, GPG_ERR_EOF) == GPG_ERR_NO_ERROR);
}
auto GetKeys(const KeyIdArgsListPtr& ids) -> KeyListPtr {