summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qnetworkproxy_libproxy.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-05-09 11:07:18 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-06-03 19:28:11 -0700
commit01dfcfcecf454a7bdc92980403796f1d3a49d8a4 (patch)
treefc4cdc47e9393023880dc9c36017cf5536275aa2 /src/network/kernel/qnetworkproxy_libproxy.cpp
parenteda71105ff9a516059c6dd6643ff446a82edac81 (diff)
QDnsLookup: merge some of the domain label expansion code
Use qt_ACE_do directly from QtCore, to avoid going through Latin1 (US-ASCII) multiple times. Drive-by reduce the size of the buffers from PACKETSZ (512) to the maximum name a label can be (255 plus 1 for the null, just in case). Drive-by replace the last QString::fromWCharArray with QStringView, saving an unnecessary memory allocation before calling QtPrivate::convertToLatin1(). Change-Id: I3e3bfef633af4130a03afffd175d8be1feb5d74b Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network/kernel/qnetworkproxy_libproxy.cpp')
0 files changed, 0 insertions, 0 deletions