]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/sourcemap.cpp
Remove unnecessary std:: qualifiers
[libs/gl.git] / source / glsl / sourcemap.cpp
index 9b341fe46e0b6be0c098199548de39a3a4b28f10..b81931e1143dfe24719833444257e7d235adedd5 100644 (file)
@@ -13,7 +13,7 @@ SourceMap::SourceMap():
        base_index(0)
 { }
 
-void SourceMap::set_name(unsigned i, const std::string &n)
+void SourceMap::set_name(unsigned i, const string &n)
 {
        if(source_names.empty())
                base_index = i;
@@ -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<string> lines = split(errors, '\n');
        string translated;
-       for(vector<string>::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';
        }