From 2c3c479c202731b7ea9446945706769f0a04161c Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 27 Aug 2025 16:56:40 +0200 Subject: [PATCH] util/unicode: readEastAsianWidth(): remove simplified() call All users of the split()ed value handle intervening whitespace already: - fields[0] is piped through parseHexRange(), which does - fields[1] has trimmed() called on it before lookup and all idnaStatusMap values are space-free (cf. initIdnaStatusMap()) As a consequence, we can accept the line by reference to const QByteArray now. Amends 838a7a01f388673c45af2dd60bc38992de1a2a05. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: I53247332c624a192fcaca6009a3f20cb8c65786a Reviewed-by: Edward Welbourne --- util/unicode/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp index 325565cbb3a..523b9e3d1c9 100644 --- a/util/unicode/main.cpp +++ b/util/unicode/main.cpp @@ -1629,9 +1629,7 @@ static void readDerivedAge() static void readEastAsianWidth() { readUnicodeFile("EastAsianWidth.txt", - [] (QByteArray &line, int lineNo) { - line = std::move(line).simplified(); - + [] (const QByteArray &line, int lineNo) { QList fields = line.split(';'); Q_ASSERT(fields.size() == 2);