X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fhttp%2Fheader.cpp;h=b55223e8d51cf082ad2db22fa08ed46b93b16492;hp=3027d17d887eddaba34ff03fc90ade533c4b55cd;hb=dd1884f1aaef4df246d78cabc9d937e5ebc3e511;hpb=62ea6954a91568c900ad8155999bea264dfa72f3 diff --git a/source/http/header.cpp b/source/http/header.cpp index 3027d17..b55223e 100644 --- a/source/http/header.cpp +++ b/source/http/header.cpp @@ -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