summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2018-10-20 18:02:12 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2018-11-18 17:56:53 +0000
commit97d12b454118730afc2f03ac44a6be12b47823ee (patch)
tree94059ea2e9ff8f634a4f6f47ccf036c683ce565c /src/gui
parentd3fe78f6c49840ac2697be39a98192f38cb60691 (diff)
qnativesocketengine_win.cpp: Improve memory handling
We use std::vector and thus RAII instead of manual memory management. std::vector (re)allocates only if needed, growing exponentially, initializing only new elements. std::vector<>::resize also makes initialization loop redundant Task-number: QTBUG-71156 Change-Id: I253bb428c0fb641872f0f7f2dcfe1f9e89db0296 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Mikhail Svetkin <mikhail.svetkin@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions