diff --git a/src/ioslaves/http/parsinghelpers.cpp b/src/ioslaves/http/parsinghelpers.cpp --- a/src/ioslaves/http/parsinghelpers.cpp +++ b/src/ioslaves/http/parsinghelpers.cpp @@ -161,8 +161,7 @@ {"www-authenticate", false} //see proxy-authenticate }; - for (uint i = 0; i < sizeof(headerFieldTemplates) / sizeof(HeaderFieldTemplate); i++) { - const HeaderFieldTemplate &ft = headerFieldTemplates[i]; + for (const HeaderFieldTemplate &ft : headerFieldTemplates) { insert(QByteArray(ft.name), HeaderField(ft.isMultiValued)); } }