]> granicus.if.org Git - neomutt/commitdiff
Replace `this` variable with `key`
authorFederico Kircheis <federico.kircheis@gmail.com>
Sat, 29 Jun 2019 19:32:57 +0000 (21:32 +0200)
committerRichard Russon <rich@flatcap.org>
Fri, 5 Jul 2019 01:34:07 +0000 (02:34 +0100)
`this` is a reserved keyword in c++

ncrypt/smime.c

index fdb577820dfb934d1fc6c95b96ee386da66b7884..dba61c8aa653017987f88c9ffa0cc9c054c25fbb 100644 (file)
@@ -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);
 }
 
 /**