output_header: remove a few left-overs c_str() calls
This commit is contained in:
parent
6c8cd11dad
commit
dd5fa160c2
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ void output_header_t::emit_tokens() {
|
|||
block_t token(this, "typedef enum ", prefixed("token"));
|
||||
|
||||
for (const auto &token : get_tokens())
|
||||
write_line(token.first.c_str(), " = ", token.second + 256, ",");
|
||||
write_line(token.first, " = ", token.second + 256, ",");
|
||||
|
||||
token.close_(" ", prefixed("token_t"));
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ void output_header_t::emit_token_value() {
|
|||
}
|
||||
|
||||
for (const auto &value : token_values)
|
||||
write_line_(variable_t({value.second.c_str(), value.first.c_str()}));
|
||||
write_line_(variable_t({value.second, value.first}));
|
||||
|
||||
token_value.close_(" ", prefixed("token_value_t"));
|
||||
}
|
||||
|
|
Reference in a new issue