summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearraylist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qbytearraylist.h')
-rw-r--r--src/corelib/tools/qbytearraylist.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/tools/qbytearraylist.h b/src/corelib/tools/qbytearraylist.h
index 5ce6509c28..882bc68f09 100644
--- a/src/corelib/tools/qbytearraylist.h
+++ b/src/corelib/tools/qbytearraylist.h
@@ -97,9 +97,8 @@ inline QByteArray QByteArrayList::join(char sep) const
inline QByteArrayList operator+(const QByteArrayList &lhs, const QByteArrayList &rhs)
{
- QByteArrayList res;
- res.append( lhs );
- res.append( rhs );
+ QByteArrayList res = lhs;
+ res += rhs;
return res;
}