X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexformat.cpp;h=3d15705a01765c18abe9244dbd8ae0f39261f357;hp=7dcb7aba5472e9438671ef31da1036ef15276c8b;hb=e9a898f;hpb=bdef3de6559629f25121de2e014383d7f773266b diff --git a/source/core/vertexformat.cpp b/source/core/vertexformat.cpp index 7dcb7aba..3d15705a 100644 --- a/source/core/vertexformat.cpp +++ b/source/core/vertexformat.cpp @@ -125,7 +125,7 @@ VertexAttribute make_indexed_attribute(VertexAttribute attr, unsigned index) bool convert_attribute_type(string::const_iterator &i, string::const_iterator end, const char *name, VertexAttribute &attr, DataType type) { - string::const_iterator j = i; + auto j = i; for(; (j!=end && *j!='_' && *name); ++name, ++j) if(*j!=*name) return false; @@ -138,7 +138,7 @@ bool convert_attribute_type(string::const_iterator &i, string::const_iterator en bool convert_attribute(const string &str, const char *name, int min_size, int max_size, VertexAttribute &attr, VertexAttribute base_attr) { - string::const_iterator i = str.begin(); + auto i = str.begin(); for(; *name; ++name, ++i) if(*i!=*name) return false;