add QList::reserve()

This commit is contained in:
Kurt Hindenburg
2015-10-12 09:46:10 -04:00
parent 65a151e035
commit dc5ba8c695
5 changed files with 9 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ QStringList ShellCommand::arguments() const
QStringList ShellCommand::expand(const QStringList& items)
{
QStringList result;
result.reserve(items.size());
foreach(const QString & item , items) {
result << expand(item);