]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/header.cpp
Use the auto type to shorten long declarations
[libs/net.git] / source / http / header.cpp
index 3027d17d887eddaba34ff03fc90ade533c4b55cd..b55223e8d51cf082ad2db22fa08ed46b93b16492 100644 (file)
@@ -53,12 +53,12 @@ void Header::parse()
 
        char value_sep = (style==VALUE_WITH_ATTRIBUTES ? 0 : ',');
 
-       string::const_iterator i = raw_value.begin();
-       while(i!=raw_value.end())
+       auto i = raw_value.cbegin();
+       while(i!=raw_value.cend())
        {
                Value value;
 
-               string::const_iterator start = i;
+               auto start = i;
                if(style==KEY_VALUE_LIST)
                        value.value = name;
                else