diff options
-rw-r--r-- | src/corelib/text/qbytearray.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index 2b46bf734d..77f4110601 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -1911,8 +1911,6 @@ QByteArray& QByteArray::append(char ch) static inline QByteArray &qbytearray_insert(QByteArray *ba, int pos, const char *arr, int len) { - Q_ASSERT(pos >= 0); - if (pos < 0 || len <= 0 || arr == nullptr) return *ba; |