diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-05-11 15:37:25 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2020-05-12 11:49:20 +0200 |
commit | 5bd7668403761fae0eb434ae7f7b9ce99f894802 (patch) | |
tree | 0fb6b28b259185f84b32b10abc2fd8501cd2c0c3 /src/corelib/io/qurl.cpp | |
parent | bed25fdf6065d7137fa5610e4f214e9a8f8e172b (diff) |
Replace some QString::fromRawData() with QStringViews around the code
Even though QString::fromRawData() may not be as expensive as it used
to be, it's still and out-of-line call _and_ more characters to type,
so replace with QStringView construction where applicable.
Change-Id: I70662da1bd45284f67e117e92b25d242afb8aaf8
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/io/qurl.cpp')
-rw-r--r-- | src/corelib/io/qurl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp index 7b09db5566..308d993440 100644 --- a/src/corelib/io/qurl.cpp +++ b/src/corelib/io/qurl.cpp @@ -1210,7 +1210,7 @@ static const QChar *parseIpFuture(QString &host, const QChar *begin, const QChar (begin[2].unicode() >= '0' && begin[2].unicode() <= '9')) { // this is so unlikely that we'll just go down the slow path // decode the whole string, skipping the "[vH." and "]" which we already know to be there - host += QString::fromRawData(begin, 4); + host += QStringView(begin, 4); // uppercase the version, if necessary if (begin[2].unicode() >= 'a') |