summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-02-22 23:30:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-24 17:05:01 +0100
commit9f983eac9f926b4ea3ee4ec860f58dc33a5b7fe7 (patch)
treede904dbf91f2a9526fb268d22b7a04e1b78ce8dc /src/plugins/platforms/windows
parent6813a21c522631e5388b2cbf3f8e4e273b0d27ce (diff)
QJNI: optimize QSharedPointer creation
Instead of QSharedPointer<T>(new T), use QSharedPointer<T>::create(), since the latter co-locates the refcount and the T instance in a single memory allocation, unlike the first form, which uses separate memory allocations. Change-Id: I5095ac43448aad9a7e3ec07ed4dcdca869bcd9e8 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows')
0 files changed, 0 insertions, 0 deletions