A few simplifications: - use "const" on a few QStrings - get the path for the kio_man.css file only one time at start - construct the to kio_man.css on the fly when writing to the string - limit the i18n() to the real text (especially if the tags are unbalanced) - do not use QFile::encodeName when it has to be given as QString to the stream - make "static" the function sectionName - use const_iterator (as it seems more portable to Qt4) - use ++it instead of it++ for iterators (Partly follow-up of bug #99384) CCBUG:99384