From f976dc96fd9267bd51bde31ebeec8bdeb21d3fc8 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Fri, 14 Apr 2017 10:39:44 +0200 Subject: Reserve some elements Change-Id: Iceef4e9a6f213a747045db3b06a5608d77652f98 Reviewed-by: Orgad Shaneh --- src/plugins/diffeditor/differ.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/diffeditor') diff --git a/src/plugins/diffeditor/differ.cpp b/src/plugins/diffeditor/differ.cpp index a99b14a127..1e452a7d46 100644 --- a/src/plugins/diffeditor/differ.cpp +++ b/src/plugins/diffeditor/differ.cpp @@ -89,6 +89,7 @@ static QList decode(const QList &diffList, const QStringList &lines) { QList newDiffList; + newDiffList.reserve(diffList.count()); for (int i = 0; i < diffList.count(); i++) { Diff diff = diffList.at(i); QString text; -- cgit v1.2.1