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/gui/painting/qpaintengine_raster.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/gui/painting/qpaintengine_raster.cpp')
-rw-r--r-- | src/gui/painting/qpaintengine_raster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp index 13a6f5c16a..24e0289c53 100644 --- a/src/gui/painting/qpaintengine_raster.cpp +++ b/src/gui/painting/qpaintengine_raster.cpp @@ -3156,7 +3156,7 @@ void QRasterPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textIte #ifdef QT_DEBUG_DRAW Q_D(QRasterPaintEngine); fprintf(stderr," - QRasterPaintEngine::drawTextItem(), (%.2f,%.2f), string=%s ct=%d\n", - p.x(), p.y(), QString::fromRawData(ti.chars, ti.num_chars).toLatin1().data(), + p.x(), p.y(), QStringView(ti.chars, ti.num_chars).toLatin1().data(), d->glyphCacheFormat); #endif |