summaryrefslogtreecommitdiff
path: root/src/widgets/qquickqfiledialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/qquickqfiledialog.cpp')
-rw-r--r--src/widgets/qquickqfiledialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/qquickqfiledialog.cpp b/src/widgets/qquickqfiledialog.cpp
index 90d1ef9e..7ebebf1f 100644
--- a/src/widgets/qquickqfiledialog.cpp
+++ b/src/widgets/qquickqfiledialog.cpp
@@ -209,6 +209,7 @@ void QFileDialogHelper::fileSelected(const QString& path)
void QFileDialogHelper::filesSelected(const QStringList& paths)
{
QList<QUrl> pathUrls;
+ pathUrls.reserve(paths.count());
foreach (const QString &path, paths)
pathUrls << QUrl::fromLocalFile(path);
emit QPlatformFileDialogHelper::filesSelected(pathUrls);