From 64b6a2aa70a210edcfe8b6dd61fdd97a5dda52ec Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 22 May 2024 11:19:46 +0200 Subject: [PATCH] PDF: code tidies Take by QByteArrayView instead of const QByteArray &. This work has been kindly sponsored by the QGIS project (https://qgis.org/). Change-Id: I2a5b96ba81fc16487e25be3e957c50ea1b11be76 Reviewed-by: Albert Astals Cid Reviewed-by: Tobias Koenig --- src/gui/painting/qpdf_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qpdf_p.h b/src/gui/painting/qpdf_p.h index 9b026576fc..54d37b00a8 100644 --- a/src/gui/painting/qpdf_p.h +++ b/src/gui/painting/qpdf_p.h @@ -319,7 +319,7 @@ private: int addXrefEntry(int object, bool printostr = true); void printString(QStringView string); void xprintf(const char* fmt, ...); - inline void write(const QByteArray &data) { + inline void write(QByteArrayView data) { stream->writeRawData(data.constData(), data.size()); streampos += data.size(); }