diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dialogs/Private/qquickwritingsystemlistmodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dialogs/Private/qquickwritingsystemlistmodel.cpp b/src/dialogs/Private/qquickwritingsystemlistmodel.cpp index 7236f8af..26b1ffe9 100644 --- a/src/dialogs/Private/qquickwritingsystemlistmodel.cpp +++ b/src/dialogs/Private/qquickwritingsystemlistmodel.cpp @@ -127,6 +127,7 @@ QStringList QQuickWritingSystemListModel::writingSystems() const { Q_D(const QQuickWritingSystemListModel); QStringList result; + result.reserve(d->wss.size()); for (QFontDatabase::WritingSystem ws : qAsConst(d->wss)) result.append(QFontDatabase::writingSystemName(ws)); |