]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/tokenizer.cpp
Use C++11 features with containers
[libs/gl.git] / source / glsl / tokenizer.cpp
index bd455e3cb200408128534b6e9a235198e6d08807..595a97abc71e28402fef288be5f7c9636bc87e28 100644 (file)
@@ -95,7 +95,7 @@ void Tokenizer::preprocess()
 {
        SetForScope<deque<string> > clear_tokens(next_tokens, deque<string>());
 
-       string::const_iterator line_end = iter;
+       auto line_end = iter;
        for(; (line_end!=source_end && *line_end!='\n'); ++line_end) ;
        SetForScope<string::const_iterator> stop_at_line_end(source_end, line_end);