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 <aacid@kde.org> Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com>
This commit is contained in:
parent
a3a91c947c
commit
64b6a2aa70
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user