From 03a09377548792aa042c67aabd6874f5c3d6ef25 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 9 Jul 2020 21:03:15 +0200 Subject: Inline the equality operator There's no reason to have this out of line. Change-Id: I52aa2ba941f9c81c2194865b156dbc0a2104363b Reviewed-by: Thiago Macieira --- src/corelib/text/qbytearray.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/corelib/text/qbytearray.cpp') 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 -- cgit v1.2.3