diff --git a/src/gui/painting/qpdf_p.h b/src/gui/painting/qpdf_p.h index 9b026576fc5..54d37b00a8b 100644 --- a/src/gui/painting/qpdf_p.h +++ b/src/gui/painting/qpdf_p.h @@ -319,7 +319,7 @@ class Q_GUI_EXPORT QPdfEnginePrivate : public QPaintEnginePrivate 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(); }