QLocal8Bit::convertToUnicode[win]: Fix indentation
To make future changes easier to read Pick-to: 6.5 Task-number: QTBUG-118318 Task-number: QTBUG-105105 Change-Id: I431c83b956c179b1d04c2bf51b744227f8b136be Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 3a5339b4187c63acd0ea924937042f61150d2e06) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
cfd9639095
commit
ba8b0fdcf7
@ -1360,9 +1360,8 @@ QString QLocal8Bit::convertToUnicode_sys(QByteArrayView in, quint32 codePage,
|
||||
mb, mblen, wc.data(), wc.length()))) {
|
||||
int r = GetLastError();
|
||||
if (r == ERROR_INSUFFICIENT_BUFFER) {
|
||||
const int wclen = MultiByteToWideChar(codePage, MB_PRECOMPOSED,
|
||||
mb, mblen, 0, 0);
|
||||
wc.resize(wclen);
|
||||
const int wclen = MultiByteToWideChar(codePage, MB_PRECOMPOSED, mb, mblen, 0, 0);
|
||||
wc.resize(wclen);
|
||||
} else if (r == ERROR_NO_UNICODE_TRANSLATION) {
|
||||
//find the last non NULL character
|
||||
while (mblen > 1 && !(mb[mblen-1]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user