mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Fixup warning introduced with 5dc8e7fd
Fix error: lib/db_x509.cpp:774:4: warning:
add explicit braces to avoid dangling else [-Wdangling-else]
This commit is contained in:
parent
d32ab2e0d4
commit
286ae96764
@ -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<pki_x509>(idx))
|
||||
deletePKI(idx);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (errorEx &err) {
|
||||
XCA_ERROR(err);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user