Commit 21af0c9c authored by Milian Wolff's avatar Milian Wolff

Reserve space to reduce temporary allocations.

parent c24c2a59
......@@ -205,7 +205,9 @@ QString decodeRFC2047String( const QByteArray &src, QByteArray &usedCS,
const QByteArray &defaultCS, bool forceCS )
{
QByteArray result;
result.reserve(64);
QByteArray spaceBuffer;
spaceBuffer.reserve(64);
const char *scursor = src.constData();
const char *send = scursor + src.length();
bool onlySpacesSinceLastWord = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment