summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qbuffer.h')
-rw-r--r--src/corelib/io/qbuffer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/io/qbuffer.h b/src/corelib/io/qbuffer.h
index 96144b63a8..4cbbfe7c52 100644
--- a/src/corelib/io/qbuffer.h
+++ b/src/corelib/io/qbuffer.h
@@ -33,7 +33,10 @@ public:
void setBuffer(QByteArray *a);
void setData(const QByteArray &data);
- inline void setData(const char *data, int len);
+#if QT_CORE_REMOVED_SINCE(6, 5) && QT_POINTER_SIZE != 4
+ void setData(const char *data, int len) { setData(data, qsizetype(len)); }
+#endif
+ void setData(const char *data, qsizetype len);
const QByteArray &data() const;
bool open(OpenMode openMode) override;
@@ -60,9 +63,6 @@ private:
Q_PRIVATE_SLOT(d_func(), void _q_emitSignals())
};
-inline void QBuffer::setData(const char *adata, int alen)
-{ setData(QByteArray(adata, alen)); }
-
QT_END_NAMESPACE
#endif // QBUFFER_H