aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-12-03 09:42:14 +0000
committersaturneric <[email protected]>2024-12-03 09:42:14 +0000
commitf4525ea80237bbb57ab7e3ab196fb3e85a4b05bb (patch)
treef0dc58c1e4740f79640fbdadcbf68563ec59b9df /src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp
parentfix: variable 'mods_path' is reassigned a value before the old one has been u... (diff)
downloadGpgFrontend-f4525ea80237bbb57ab7e3ab196fb3e85a4b05bb.tar.gz
GpgFrontend-f4525ea80237bbb57ab7e3ab196fb3e85a4b05bb.zip
fix: compiler warnings
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp
index 1c99539b..e079e683 100644
--- a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp
+++ b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp
@@ -108,9 +108,8 @@ void KeyUIDSignDialog::slot_sign_key(bool clicked) {
auto key_ids = m_key_list_->GetChecked();
auto keys =
GpgKeyGetter::GetInstance(current_gpg_context_channel_).GetKeys(key_ids);
- for (const auto& key : *keys) {
- assert(key.IsGood());
- }
+ assert(std::all_of(keys->begin(), keys->end(),
+ [](const auto& key) { return key.IsGood(); }));
auto expires = std::make_unique<QDateTime>(expires_edit_->dateTime());