diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2014-03-11 23:18:23 +0100 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-14 13:34:37 +0100 |
| commit | 901515a008892bfc49371e9207972b2950276377 (patch) | |
| tree | e17db0af651481fc8e2ff2dbc45ff9c34c067b0a /src/tools/qdoc/cppcodeparser.cpp | |
| parent | 6a0d304a2dbbcabcfb570ec6508f6324ce9906ad (diff) | |
QNetworkReplyHttpImpl: optimize QAtomicInt allocation
Use QSharedPointer<T>::create(), which co-locates the refcount with the payload
in a single memory allocation, instead of QSharedPointer<T>(new T), which causes
two allocations.
Change-Id: I3f70d15a6d1bfaaa8b48a36ed3c877e817a5b701
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/qdoc/cppcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions
