diff options
author | saturneric <[email protected]> | 2024-12-03 09:42:14 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-03 09:42:14 +0000 |
commit | f4525ea80237bbb57ab7e3ab196fb3e85a4b05bb (patch) | |
tree | f0dc58c1e4740f79640fbdadcbf68563ec59b9df /src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | |
parent | fix: variable 'mods_path' is reassigned a value before the old one has been u... (diff) | |
download | GpgFrontend-f4525ea80237bbb57ab7e3ab196fb3e85a4b05bb.tar.gz GpgFrontend-f4525ea80237bbb57ab7e3ab196fb3e85a4b05bb.zip |
fix: compiler warnings
Diffstat (limited to '')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | 5 |
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()); |