From f4525ea80237bbb57ab7e3ab196fb3e85a4b05bb Mon Sep 17 00:00:00 2001 From: saturneric Date: Tue, 3 Dec 2024 10:42:14 +0100 Subject: fix: compiler warnings --- src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp') 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(expires_edit_->dateTime()); -- cgit v1.2.3