Skip to content

Commit

Permalink
PDF: code tidies
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Tobias Koenig <[email protected]>
  • Loading branch information
dangelog committed May 29, 2024
1 parent a3a91c9 commit 64b6a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/painting/qpdf_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 64b6a2a

Please sign in to comment.