clang-modernize -use-auto convert for world/eqw_parser.cpp

This commit is contained in:
Michael Cook (mackal) 2015-01-09 03:05:14 -05:00
parent 0956575292
commit 446b085d6c

View File

@ -229,8 +229,7 @@ bool EQWParser::dosub(const char * subname, const std::vector<std::string> &args
PUSHMARK(SP); // remember the stack pointer PUSHMARK(SP); // remember the stack pointer
if(args.size() > 0) if(args.size() > 0)
{ {
for(std::vector<std::string>::const_iterator i = args.begin(); i != args.end(); ++i) for (auto i = args.begin(); i != args.end(); ++i) { /* push the arguments onto the perl stack */
{/* push the arguments onto the perl stack */
XPUSHs(sv_2mortal(newSVpv(i->c_str(), i->length()))); XPUSHs(sv_2mortal(newSVpv(i->c_str(), i->length())));
} }
} }