diff options
author | saturneric <[email protected]> | 2023-10-30 06:52:29 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-30 06:52:29 +0000 |
commit | 5d7b1d5493df8723259eca0613a9ce0af6077289 (patch) | |
tree | 12c0c820e956a1182d21d5897dc85610732767fd /src/ui/dialog/keypair_details/KeyPairOperaTab.cpp | |
parent | chore: add project infos in cmake config file (diff) | |
download | GpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.tar.gz GpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.zip |
style: improve code style of core
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairOperaTab.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyPairOperaTab.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp b/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp index d141c971..094b1849 100644 --- a/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp +++ b/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp @@ -193,7 +193,7 @@ void KeyPairOperaTab::slot_export_public_key() { if (file_name.empty()) return; - if (!write_buffer_to_file(file_name, *keyArray)) { + if (!WriteBufferToFile(file_name, *keyArray)) { QMessageBox::critical( this, _("Export Error"), QString(_("Couldn't open %1 for writing")).arg(file_name.c_str())); @@ -245,7 +245,7 @@ void KeyPairOperaTab::slot_export_short_private_key() { if (file_name.empty()) return; - if (!write_buffer_to_file(file_name, *keyArray)) { + if (!WriteBufferToFile(file_name, *keyArray)) { QMessageBox::critical( this, _("Export Error"), QString(_("Couldn't open %1 for writing")).arg(file_name.c_str())); @@ -294,7 +294,7 @@ void KeyPairOperaTab::slot_export_private_key() { if (file_name.empty()) return; - if (!write_buffer_to_file(file_name, *keyArray)) { + if (!WriteBufferToFile(file_name, *keyArray)) { QMessageBox::critical( this, _("Export Error"), QString(_("Couldn't open %1 for writing")).arg(file_name.c_str())); @@ -343,7 +343,7 @@ void KeyPairOperaTab::slot_gen_revoke_cert() { void KeyPairOperaTab::slot_modify_password() { auto err = GpgKeyOpera::GetInstance().ModifyPassword(m_key_); - if (check_gpg_error_2_err_code(err) != GPG_ERR_NO_ERROR) { + if (CheckGpgError(err) != GPG_ERR_NO_ERROR) { QMessageBox::critical(this, _("Not Successful"), QString(_("Modify password not successfully."))); } @@ -373,7 +373,7 @@ void KeyPairOperaTab::slot_modify_tofu_policy() { tofu_policy = GPGME_TOFU_POLICY_UNKNOWN; } auto err = GpgKeyOpera::GetInstance().ModifyTOFUPolicy(m_key_, tofu_policy); - if (check_gpg_error_2_err_code(err) != GPG_ERR_NO_ERROR) { + if (CheckGpgError(err) != GPG_ERR_NO_ERROR) { QMessageBox::critical(this, _("Not Successful"), QString(_("Modify TOFU policy not successfully."))); } |