diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-05-31 21:07:14 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-06-02 11:05:27 +0200 |
commit | 033a148b43039d5c2055f173b5e081d9da1ecb6d (patch) | |
tree | f747e6b57d9259bd26f2b000eb261fe30355feaa /src/plugins/cpptools/cppcodecompletion.cpp | |
parent | a1fa00d2e76aa5d81b2fab5f398780415714cf5b (diff) | |
download | qt-creator-033a148b43039d5c2055f173b5e081d9da1ecb6d.tar.gz |
optimize assignments: record number of literals
that way the result vector can be pre-allocated - which gives zero
resizes if no expansions are in the expression.
for the joined argument lists of built-in functions, pre-allocate a
fixed 5 elements, which covers all cases and more.
the argument lists of user-defined functions are not pre-allocated
yet.
Diffstat (limited to 'src/plugins/cpptools/cppcodecompletion.cpp')
0 files changed, 0 insertions, 0 deletions