mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
keep references to QByteArray objects in QString::localeAwareCompare_helper()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
254d624ebb
commit
87b6a51d5d
1 changed files with 3 additions and 2 deletions
|
@ -4165,9 +4165,10 @@ int QString::localeAwareCompare_helper(const QChar *data1, int length1,
|
|||
return res;
|
||||
} // else fall through
|
||||
|
||||
const QByteArray databytes1 = toLocal8Bit_helper(data1, length1);
|
||||
const QByteArray databytes2 = toLocal8Bit_helper(data2, length2);
|
||||
// declared in <string.h>
|
||||
int delta = strcoll(toLocal8Bit_helper(data1, length1).constData(),
|
||||
toLocal8Bit_helper(data2, length2).constData());
|
||||
int delta = strcoll(databytes1.constData(), databytes2.constData());
|
||||
if (delta == 0)
|
||||
delta = ucstrcmp(data1, length1, data2, length2);
|
||||
return delta;
|
||||
|
|
Loading…
Add table
Reference in a new issue