From 5bd7668403761fae0eb434ae7f7b9ce99f894802 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 11 May 2020 15:37:25 +0200 Subject: 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 --- src/gui/painting/qpaintengine_raster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/painting/qpaintengine_raster.cpp') 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 -- cgit v1.2.3