QString: remove weird uses of QChar::unicode()

Both *rc and fillChar have type QChar. So don't use QChar::unicode()
to assign them to each other, just use QChar::op=...

Change-Id: I050035ca16d613f3c57eb5a582978d23c2f04f36
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Marc Mutz 2020-05-05 23:53:22 +02:00
parent 81c648590e
commit a96900eea5

View File

@ -8255,7 +8255,7 @@ static QString replaceArgEscapes(QStringView s, const ArgEscapeData &d, int fiel
if (field_width > 0) { // left padded
for (uint i = 0; i < pad_chars; ++i)
(rc++)->unicode() = fillChar.unicode();
*rc++ = fillChar;
}
if (locale_arg) {
@ -8269,7 +8269,7 @@ static QString replaceArgEscapes(QStringView s, const ArgEscapeData &d, int fiel
if (field_width < 0) { // right padded
for (uint i = 0; i < pad_chars; ++i)
(rc++)->unicode() = fillChar.unicode();
*rc++ = fillChar;
}
if (++repl_cnt == d.occurrences) {