diff options
| author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-03-19 17:13:22 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2015-04-04 15:48:13 +0000 |
| commit | 1db3de6a1e09216aaf92b60fc167a7326c6a62d8 (patch) | |
| tree | 2ebf2397b9ea39ded8c4ddafaef355c87ddbc7b3 /src/tools/qdoc/cppcodeparser.h | |
| parent | c51240ca759e863b96fe65662a22ae6a301a170f (diff) | |
QVLA: Add operator= for initializer lists
Add a dedicated operator=(std::initializer_list) that
first resizes the QCLA, and then replaces the elements
one by one.
This should be usually faster than creating a temporary
QCLA and then copying it, except for the case where the
new array does not fit into the allocated stack - but this
is IMO nothing to optimize for.
Task-number: QTBUG-45041
Change-Id: I147d6d01186b1ca3c635b2c8365d8f6e638ce6fe
GPush-Base: 08de3113051e1289f0de0651ec5647c9ee6feb27
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/qdoc/cppcodeparser.h')
0 files changed, 0 insertions, 0 deletions
