output_header: remove a few left-overs c_str() calls

This commit is contained in:
Matthias Schiffer 2015-04-17 18:27:31 +02:00
parent 6c8cd11dad
commit dd5fa160c2

View file

@ -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"));
}