should not be written
@if (attribute.name() == "http-contents-length") //... ?@

Also, what of the following best describes an optimized initialization of a QString?@QString first = "ångström";
QString second = QLatin1String("ångström");
QString third = QStringLiteral("ångström");@