diff --git a/alib2data/src/factory/DataFactory.hpp b/alib2data/src/factory/DataFactory.hpp index 9b48a9abb0e0ea063014246aeb84afcc75a7269b..713c820ee60722c4e132848d39eb5ac325c87c66 100644 --- a/alib2data/src/factory/DataFactory.hpp +++ b/alib2data/src/factory/DataFactory.hpp @@ -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);