Skip to content
Commit e62a9a34 authored by Volker Krause's avatar Volker Krause
Browse files

Remove the charset argument in Header::fromUnicodeString()

And same for ContentType::setName().

This is practically everywhere called with UTF-8 as a literal, most
exceptions are in unit test code. Not all call sites use QByteArrayLiteral,
so we also get an additional allocation there.

For the unlikely case this actually needs to be set to something other
than UTF-8, there's still a dedicated setter method for that.

Given the wide-spread use, this has an deprecated inline compat method
for now.
parent def7c533
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment