summaryrefslogtreecommitdiffstats
path: root/src/output_header.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/output_header.cpp')
-rw-r--r--src/output_header.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output_header.cpp b/src/output_header.cpp
index a99369c..c947d9c 100644
--- a/src/output_header.cpp
+++ b/src/output_header.cpp
@@ -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"));
}