diff options
author | 2020-01-31 03:46:27 +0100 | |
---|---|---|
committer | 2020-01-30 21:46:27 -0500 | |
commit | dfaf9dd5bcf354f09fde7573b7042bb63d84fad0 (patch) | |
tree | d018f200f2077123b6e0971499b1de213577ded4 /src/lib/util/xmlfile.cpp | |
parent | 4a102057779ece1b11431ff0b7787249ce0ad3ad (diff) |
fixed some modernize-use-auto clang-tidy warnings (nw) (#6238)
Diffstat (limited to 'src/lib/util/xmlfile.cpp')
-rw-r--r-- | src/lib/util/xmlfile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/util/xmlfile.cpp b/src/lib/util/xmlfile.cpp index 430de1f7c38..8ba2cec92c3 100644 --- a/src/lib/util/xmlfile.cpp +++ b/src/lib/util/xmlfile.cpp @@ -754,7 +754,7 @@ const char *normalize_string(const char *string) static void *expat_malloc(size_t size) { - uint32_t *result = (uint32_t *)malloc(size + 4 * sizeof(uint32_t)); + auto *result = (uint32_t *)malloc(size + 4 * sizeof(uint32_t)); *result = size; return &result[4]; } @@ -837,7 +837,7 @@ static bool expat_setup_parser(parse_info &info, parse_options const *opts) static void expat_element_start(void *data, const XML_Char *name, const XML_Char **attributes) { - parse_info *info = (parse_info *) data; + auto *info = (parse_info *) data; data_node **curnode = &info->curnode; data_node *newnode; int attr; @@ -866,7 +866,7 @@ static void expat_element_start(void *data, const XML_Char *name, const XML_Char static void expat_data(void *data, const XML_Char *s, int len) { - parse_info *info = (parse_info *) data; + auto *info = (parse_info *) data; data_node **curnode = &info->curnode; (*curnode)->append_value(s, len); } @@ -879,7 +879,7 @@ static void expat_data(void *data, const XML_Char *s, int len) static void expat_element_end(void *data, const XML_Char *name) { - parse_info *info = (parse_info *) data; + auto *info = (parse_info *) data; data_node **curnode = &info->curnode; /* strip leading/trailing spaces from the value data */ |