summaryrefslogtreecommitdiffstats
path: root/src/parse.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-04-18 18:54:40 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-04-18 18:54:40 +0200
commit3cab65c9f0e2a513a2cd3601c41085ca69cf9193 (patch)
treedf81a46c3142a8bc2b5b33cc485993cbdc8fa268 /src/parse.cpp
parenta6cf9b0956f68a1e68fbbd1a2716fae3398c2582 (diff)
downloadsolar-3cab65c9f0e2a513a2cd3601c41085ca69cf9193.tar
solar-3cab65c9f0e2a513a2cd3601c41085ca69cf9193.zip
parse: improve code formatting
Diffstat (limited to 'src/parse.cpp')
-rw-r--r--src/parse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.cpp b/src/parse.cpp
index c99ceca..0d8d417 100644
--- a/src/parse.cpp
+++ b/src/parse.cpp
@@ -86,7 +86,7 @@ static inline void parse_reduce_11(std::string *lhs, unsigned char c1, unsigned
grammar->add_rule({item_t(*lhs, {symbol_t::make_char(c)}), vars, std::string()});
}
-static inline rhs_t * parse_reduce_12(__attribute__((unused)) grammar_t *grammar) {return new rhs_t();}
+static inline rhs_t * parse_reduce_12(__attribute__((unused)) grammar_t *grammar) {return new rhs_t;}
static inline rhs_t * parse_reduce_13(rhs_t *rhs, symbol_t *sym, var_t *var, __attribute__((unused)) grammar_t *grammar) {
rhs->first.push_back(*sym);