~neon/project-neon/libkgapi

« back to all changes in this revision

Viewing changes to src/core/ui/authwidget.cpp

  • Committer: Sergio Martins
  • Date: 2015-08-27 18:39:14 UTC
  • Revision ID: git-v1:5101d5e78554534a39edb35bd89e7ded732b1a5e
misc: Use reserve to reduce allocations

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
    }
92
92
 
93
93
    QStringList scopes;
 
94
    scopes.reserve(d->account->scopes().size());
94
95
    Q_FOREACH(const QUrl & scope, d->account->scopes()) {
95
96
        scopes << scope.toString();
96
97
    }