From 19dc6cadea0168f72daff7c0ed679ccdac71a7d5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 29 Dec 2021 06:01:38 +0100 Subject: Reserve size of some containers we are filling --- src/CombinedImagePackModel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/CombinedImagePackModel.cpp') diff --git a/src/CombinedImagePackModel.cpp b/src/CombinedImagePackModel.cpp index abc49dd5..d9d047a1 100644 --- a/src/CombinedImagePackModel.cpp +++ b/src/CombinedImagePackModel.cpp @@ -56,7 +56,8 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const if (hasIndex(index.row(), index.column(), index.parent())) { switch (role) { case CompletionModel::CompletionRole: - return QStringLiteral("\"%2\"") + return QStringLiteral( + "\"%2\"") .arg(QString::fromStdString(images[index.row()].image.url).toHtmlEscaped(), QString::fromStdString(images[index.row()].image.body)); case Roles::Url: -- cgit 1.5.1