Skip to content
Snippets Groups Projects
Commit e65275da authored by Jan Trávníček's avatar Jan Trávníček
Browse files

pass tokens by reference in DataFactory

parent eb5f0d85
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ public:
* @return parsed String
*/
template<class T>
static T fromTokens(std::list<sax::Token> tokens) {
static T fromTokens(std::list<sax::Token>& tokens) {
if(tokens.size() == 0) throw exception::AlibException("Empty tokens list");
 
if(alib::api<exception::AlibException>::first(tokens)) throw alib::api<exception::AlibException>::parse(tokens);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment