summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qbytearray.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-07-09 21:03:15 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2020-08-27 18:58:21 +0200
commit03a09377548792aa042c67aabd6874f5c3d6ef25 (patch)
treecf98b205874f5d55c4636098ca7e1afd6427ec21 /src/corelib/text/qbytearray.cpp
parent84f36909479b9bdf411040e6a9f9f7822b2fba73 (diff)
Inline the equality operator
There's no reason to have this out of line. Change-Id: I52aa2ba941f9c81c2194865b156dbc0a2104363b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qbytearray.cpp')
-rw-r--r--src/corelib/text/qbytearray.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp
index afe2620c7f..16672683e9 100644
--- a/src/corelib/text/qbytearray.cpp
+++ b/src/corelib/text/qbytearray.cpp
@@ -3079,10 +3079,6 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba)
\sa QByteArray::compare()
*/
-bool operator==(const QByteArray &a1, const QByteArray &a2) noexcept
-{
- return (a1.size() == a2.size()) && (memcmp(a1.constData(), a2.constData(), a1.size())==0);
-}
/*! \fn bool operator==(const QByteArray &a1, const char *a2)
\relates QByteArray