From 23849826b490c07d9ba656bcb4ac46edd3040c0a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sun, 10 May 2020 17:58:59 +0200 Subject: =?UTF-8?q?Sweep=20of=20int-ish=20=E2=86=92=20char-ish=20types=20n?= =?UTF-8?q?ear=20calls=20to=20QString::fromU*()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fromUtf16(ushort*) and fromUcs4(uint*) overloads are going to be deprecated. Use the newer fromUtf16(char16_t*) and fromUcs4(char32_t*) overloads. As a drive-by, use std::end()/std::size() where applicable. Change-Id: I5a93e38cae4a2e33d49c90d06c5f14f7cb7ce90c Reviewed-by: Edward Welbourne Reviewed-by: Lars Knoll --- src/plugins/platforms/windows/uiautomation/qwindowsuiavalueprovider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/platforms/windows/uiautomation') diff --git a/src/plugins/platforms/windows/uiautomation/qwindowsuiavalueprovider.cpp b/src/plugins/platforms/windows/uiautomation/qwindowsuiavalueprovider.cpp index 8651bcff60..9b41162d45 100644 --- a/src/plugins/platforms/windows/uiautomation/qwindowsuiavalueprovider.cpp +++ b/src/plugins/platforms/windows/uiautomation/qwindowsuiavalueprovider.cpp @@ -72,7 +72,7 @@ HRESULT STDMETHODCALLTYPE QWindowsUiaValueProvider::SetValue(LPCWSTR val) return UIA_E_ELEMENTNOTAVAILABLE; // First sets the value as a text. - QString strVal = QString::fromUtf16(reinterpret_cast(val)); + QString strVal = QString::fromUtf16(reinterpret_cast(val)); accessible->setText(QAccessible::Value, strVal); // Then, if the control supports the value interface (range value) -- cgit v1.2.3