X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsourcemap.cpp;h=b81931e1143dfe24719833444257e7d235adedd5;hb=c4aeeced7b397d46772577775bd3a0d6c4706cba;hp=9eb33b05733a9ce3c0659cad2272aedcd37b2d1e;hpb=3a6eb030fb4eca4c2a317f270704fddf31613130;p=libs%2Fgl.git diff --git a/source/glsl/sourcemap.cpp b/source/glsl/sourcemap.cpp index 9eb33b05..b81931e1 100644 --- a/source/glsl/sourcemap.cpp +++ b/source/glsl/sourcemap.cpp @@ -59,9 +59,9 @@ string SourceMap::translate_errors(const string &errors) const static const Regex r_message("^(([0-9]+)\\(([0-9]+)\\) :|ERROR: ([0-9]+):([0-9]+):) (.*)$"); vector lines = split(errors, '\n'); string translated; - for(vector::const_iterator i=lines.begin(); i!=lines.end(); ++i) + for(const string &l: lines) { - RegMatch m = r_message.match(*i); + RegMatch m = r_message.match(l); if(m) { unsigned index = 0; @@ -82,7 +82,7 @@ string SourceMap::translate_errors(const string &errors) const translated += format("%s:%d: %s", src, line, m[6].str); } else - translated += *i; + translated += l; translated += '\n'; }