optimizations

This commit is contained in:
Daniel Sipka 2015-04-15 16:13:23 +02:00
parent bb21e64a51
commit 48fbaeb3c9
5 changed files with 49 additions and 37 deletions

View file

@ -14,7 +14,7 @@ std::string state::in_section::render(render_context& ctx, const token& token) {
switch(token.token_type()) {
case token::type::section_close:
if(token.content() == section_name && skipped_openings == 0) {
auto section_node = ctx.get_node(section_name);
auto& section_node = ctx.get_node(section_name);
std::string out;
if (!boost::apply_visitor(visitor::is_node_empty(), section_node))
out = boost::apply_visitor(