summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qendian.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-11-18 12:08:49 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-11-19 16:28:44 +0100
commit14b0e2fb1eec68d145176ee5de3570a0abff8dc1 (patch)
treea1bd9747bc9d4dc26fc61c4670baf7e19449989a /src/corelib/global/qendian.cpp
parentcde562cf6d65a3ad64fa6afd6014be74febdf912 (diff)
Prefer QBAV over raw char * form of qt_configure_strs
Passing the QByteArrayView to QString::fromLocal8Bit() ensures we tell it the size and saves a strlen(). Quite apart from avoiding some misguided grumbles from compilers, this save searching for a '\0' when we already know where it is. Change-Id: I2e3f2edfb4d3bdf488374570567d1dd30641ebc3 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qendian.cpp')
0 files changed, 0 insertions, 0 deletions