aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/import_export/KeyUploadDialog.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/import_export/KeyUploadDialog.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 'src/ui/dialog/import_export/KeyUploadDialog.cpp')
-rw-r--r--src/ui/dialog/import_export/KeyUploadDialog.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/dialog/import_export/KeyUploadDialog.cpp b/src/ui/dialog/import_export/KeyUploadDialog.cpp
index 0f1d1e20..9a02ea0e 100644
--- a/src/ui/dialog/import_export/KeyUploadDialog.cpp
+++ b/src/ui/dialog/import_export/KeyUploadDialog.cpp
@@ -47,9 +47,8 @@ KeyUploadDialog::KeyUploadDialog(int channel, const KeyIdArgsListPtr& keys_ids,
current_gpg_context_channel_(channel),
m_keys_(GpgKeyGetter::GetInstance(current_gpg_context_channel_)
.GetKeys(keys_ids)) {
- for (const auto& key : *m_keys_) {
- assert(key.IsGood());
- }
+ assert(std::all_of(m_keys_->begin(), m_keys_->end(),
+ [](const auto& key) { return key.IsGood(); }));
auto* pb = new QProgressBar();
pb->setRange(0, 0);