summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2020-05-05 23:53:22 +0200
committerMarc Mutz <marc.mutz@kdab.com>2020-05-07 15:28:17 +0200
commita96900eea51b1079efb7ee5c87a91a27306f03c7 (patch)
tree448415a1cdddf642e02ade25cd8f73b5c9682987
parent81c648590e90bfea41162a3f2e1721ce68d873e1 (diff)
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>
-rw-r--r--src/corelib/text/qstring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp
index f87cf41bf1..2238b7bbba 100644
--- a/src/corelib/text/qstring.cpp
+++ b/src/corelib/text/qstring.cpp
@@ -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) {