diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-17 18:27:31 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-17 18:27:31 +0200 |
commit | dd5fa160c23b206ed52d42a63e5edcc08fee6e48 (patch) | |
tree | cc1363b4806bcc72c683cd7f86aec78a1e062823 | |
parent | 6c8cd11dad10587e5dde9ab7706384927b961bb6 (diff) | |
download | solar-dd5fa160c23b206ed52d42a63e5edcc08fee6e48.tar solar-dd5fa160c23b206ed52d42a63e5edcc08fee6e48.zip |
output_header: remove a few left-overs c_str() calls
-rw-r--r-- | src/output_header.cpp | 4 |
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")); } |