mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
use QByteArray::clear() instead of resizing to zero in qt_ACE_do() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
4daf9e319f
commit
d80be4f728
1 changed files with 1 additions and 1 deletions
|
@ -3377,7 +3377,7 @@ static QString qt_ACE_do(const QString &domain, AceOperation op)
|
|||
qt_nameprep(&result, prevLen);
|
||||
labelLength = result.length() - prevLen;
|
||||
int toReserve = labelLength + 4 + 6; // "xn--" plus some extra bytes
|
||||
aceForm.resize(0);
|
||||
aceForm.clear();
|
||||
if (toReserve > aceForm.capacity())
|
||||
aceForm.reserve(toReserve);
|
||||
toPunycodeHelper(result.constData() + prevLen, result.size() - prevLen, &aceForm);
|
||||
|
|
Loading…
Add table
Reference in a new issue