diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-09 21:04:57 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2020-08-27 18:58:21 +0200 |
commit | 3964ece5a566d1ed517406f0ff713f6f184628ae (patch) | |
tree | 2ca04d8fd7e1913b9bb73acd8b10fe836cac3837 /src/corelib/text/qbytearray.cpp | |
parent | 03a09377548792aa042c67aabd6874f5c3d6ef25 (diff) |
Pass QByteArrayView by value
Change-Id: I65df03e7781bac63d98b8d3b59568841601d8f25
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/corelib/text/qbytearray.cpp')
-rw-r--r-- | src/corelib/text/qbytearray.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index 16672683e9..b5894da8bb 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -2538,7 +2538,7 @@ qsizetype QtPrivate::count(QByteArrayView haystack, QByteArrayView needle) noexc return num; } -/*! \fn qsizetype QByteArray::count(QByteArrayView &bv) const +/*! \fn qsizetype QByteArray::count(QByteArrayView bv) const \since 6.0 Returns the number of (potentially overlapping) occurrences of the @@ -2568,7 +2568,7 @@ qsizetype QByteArray::count(char ch) const */ /*! - \fn int QByteArray::compare(const QByteArrayView &bv, Qt::CaseSensitivity cs = Qt::CaseSensitive) const + \fn int QByteArray::compare(QByteArrayView bv, Qt::CaseSensitivity cs = Qt::CaseSensitive) const \since 6.0 Returns an integer less than, equal to, or greater than zero depending on |