From 286ae96764ccf3c2f44280dbcf1e80cbb80a17c3 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Thu, 8 Feb 2024 17:06:52 +0100 Subject: [PATCH] Fixup warning introduced with 5dc8e7fd Fix error: lib/db_x509.cpp:774:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] --- lib/db_x509.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/db_x509.cpp b/lib/db_x509.cpp index dad14901..fa550b59 100644 --- a/lib/db_x509.cpp +++ b/lib/db_x509.cpp @@ -770,10 +770,12 @@ void db_x509::certRenewal(QModelIndexList indexes) do_revoke(indexes, r); // delete old certificates if requested - if (doReplace) - foreach(idx, indexes) + if (doReplace) { + foreach(idx, indexes) { if (fromIndex(idx)) deletePKI(idx); + } + } } catch (errorEx &err) { XCA_ERROR(err);