diff options
-rw-r--r-- | src/remoteobjects/qremoteobjectrepparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remoteobjects/qremoteobjectrepparser.cpp b/src/remoteobjects/qremoteobjectrepparser.cpp index a5311c6..f7a8863 100644 --- a/src/remoteobjects/qremoteobjectrepparser.cpp +++ b/src/remoteobjects/qremoteobjectrepparser.cpp @@ -28,8 +28,8 @@ static QByteArrayList toByteArrayList(const QStringList &stringList) /* * Helper method to convert a list of strings into a list of QByteArrays */ - QByteArrayList byteArrayList(stringList.size()); - + QByteArrayList byteArrayList; + byteArrayList.reserve(stringList.size()); for (const QString &str : stringList) byteArrayList.append(toQBA(str)); |