From: Federico Kircheis Date: Sat, 29 Jun 2019 19:32:57 +0000 (+0200) Subject: Replace `this` variable with `key` X-Git-Tag: 2019-10-25~149^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4166c38dae3463121619d472979a2cae266688d;p=neomutt Replace `this` variable with `key` `this` is a reserved keyword in c++ --- diff --git a/ncrypt/smime.c b/ncrypt/smime.c index fdb577820..dba61c8aa 100644 --- a/ncrypt/smime.c +++ b/ncrypt/smime.c @@ -450,9 +450,9 @@ static char *smime_key_flags(KeyFlags flags) static void smime_make_entry(char *buf, size_t buflen, struct Menu *menu, int line) { struct SmimeKey **table = menu->data; - struct SmimeKey *this = table[line]; + struct SmimeKey *key = table[line]; char *truststate = NULL; - switch (this->trust) + switch (key->trust) { case 'e': /* L10N: Describes the trust state of a S/MIME key. @@ -510,8 +510,8 @@ static void smime_make_entry(char *buf, size_t buflen, struct Menu *menu, int li Expired, Invalid, Revoked, Trusted, Unverified, Verified, and Unknown. */ truststate = _("Unknown "); } - snprintf(buf, buflen, " 0x%s %s %s %-35.35s %s", this->hash, - smime_key_flags(this->flags), truststate, this->email, this->label); + snprintf(buf, buflen, " 0x%s %s %s %-35.35s %s", key->hash, + smime_key_flags(key->flags), truststate, key->email, key->label); } /**