diff -r bb264814dd81 -r c9b22c06307c src/types.cpp --- a/src/types.cpp Tue Jul 16 23:53:31 2013 +0300 +++ b/src/types.cpp Wed Jul 17 00:30:03 2013 +0300 @@ -4,12 +4,12 @@ #include #include "types.h" -str doFormat( std::vector args ) { +str doFormat( initlist args ) { assert( args.size() >= 1 ); - str text = args[0].value(); + str text = args.begin()->value(); - for( uchar i = 1; i < args.size(); ++i ) - text = text.arg( args[i].value() ); + for( initlist::iterator it = args.begin() + 1; it != args.end(); ++it ) + text = text.arg( it->value() ); return text; }