summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs/qtextcodec.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-04-23 11:34:01 +0200
committerLars Knoll <lars.knoll@qt.io>2020-05-14 07:47:53 +0200
commitd8997ad797f8843e2632257586a5611e8dde300a (patch)
treeb6a2a9bdc335839d11961bb9219601872435a736 /src/corelib/codecs/qtextcodec.cpp
parent5dcfd0ac2f3aa5c9f24022968827cc93d9839b45 (diff)
Clean up QUtf16::convertTo/FromUnicode
Clean up the method, and refactor it so we can avoid one copy of the data when using QStringConverter. Make the conversion to unicode more by avoiding conditions in the inner loop and doing a memcpy if endianness matches. Change-Id: I869daf861f886d69b67a1b223ac2238498b609ac Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/codecs/qtextcodec.cpp')
0 files changed, 0 insertions, 0 deletions