move element() out to header

master
Daniel Kolesa 2016-10-26 23:02:48 +02:00
parent 6fcdbe7ac1
commit 78df1ca95d
2 changed files with 5 additions and 7 deletions

View File

@ -780,7 +780,11 @@ namespace util {
} }
} }
CsString element() const; CsString element() const {
auto app = ostd::appender<CsString>();
element(app);
return ostd::move(app.get());
}
private: private:
CsState &p_state; CsState &p_state;

View File

@ -390,12 +390,6 @@ endblock:
} }
return ret; return ret;
} }
CsString ListParser::element() const {
auto app = ostd::appender<CsString>();
element(app);
return ostd::move(app.get());
}
} /* namespace util */ } /* namespace util */
} /* namespace cscript */ } /* namespace cscript */