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:
parent
81c648590e
commit
a96900eea5
@ -8255,7 +8255,7 @@ static QString replaceArgEscapes(QStringView s, const ArgEscapeData &d, int fiel
|
|||||||
|
|
||||||
if (field_width > 0) { // left padded
|
if (field_width > 0) { // left padded
|
||||||
for (uint i = 0; i < pad_chars; ++i)
|
for (uint i = 0; i < pad_chars; ++i)
|
||||||
(rc++)->unicode() = fillChar.unicode();
|
*rc++ = fillChar;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (locale_arg) {
|
if (locale_arg) {
|
||||||
@ -8269,7 +8269,7 @@ static QString replaceArgEscapes(QStringView s, const ArgEscapeData &d, int fiel
|
|||||||
|
|
||||||
if (field_width < 0) { // right padded
|
if (field_width < 0) { // right padded
|
||||||
for (uint i = 0; i < pad_chars; ++i)
|
for (uint i = 0; i < pad_chars; ++i)
|
||||||
(rc++)->unicode() = fillChar.unicode();
|
*rc++ = fillChar;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (++repl_cnt == d.occurrences) {
|
if (++repl_cnt == d.occurrences) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user