]> granicus.if.org Git - neomutt/commitdiff
Replace `this` variable with `ctx_cur`
authorFederico Kircheis <federico.kircheis@gmail.com>
Thu, 4 Jul 2019 04:14:09 +0000 (06:14 +0200)
committerRichard Russon <rich@flatcap.org>
Fri, 5 Jul 2019 01:34:07 +0000 (02:34 +0100)
`this` is a reserved keyword in c++

compose.c

index d153c70a4aa4638044a9b6b5ec62730dd34ba5b3..5e5d3bba499c3129fd4e42a38d57ab76152f04e4 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -1462,7 +1462,7 @@ int mutt_compose_menu(struct Email *msg, char *fcc, size_t fcclen, struct Email
           break;
         }
 
-        struct Context *this = Context; /* remember current folder and sort methods */
+        struct Context *ctx_cur = Context; /* remember current folder and sort methods */
         int old_sort = C_Sort; /* C_Sort, SortAux could be changed in mutt_index_menu() */
         int old_sort_aux = C_SortAux;
 
@@ -1475,7 +1475,7 @@ int mutt_compose_menu(struct Email *msg, char *fcc, size_t fcclen, struct Email
         if (!Context)
         {
           /* go back to the folder we started from */
-          Context = this;
+          Context = ctx_cur;
           /* Restore old $sort and $sort_aux */
           C_Sort = old_sort;
           C_SortAux = old_sort_aux;
@@ -1510,7 +1510,7 @@ int mutt_compose_menu(struct Email *msg, char *fcc, size_t fcclen, struct Email
         }
 
         /* go back to the folder we started from */
-        Context = this;
+        Context = ctx_cur;
         /* Restore old $sort and $sort_aux */
         C_Sort = old_sort;
         C_SortAux = old_sort_aux;