From 30efb14313e18883d1ab1b348ae3df39d1baf4c2 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 10 Apr 2017 10:17:34 +0200 Subject: [PATCH] Make QStringView::storage_type public ... so users of QStringView::utf16() can use it, without having to revert to decltype()/auto. Change-Id: Ie09696b9354d3917914f8e2692769cfd35b01ae1 Reviewed-by: Edward Welbourne --- src/corelib/tools/qstringview.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/tools/qstringview.h b/src/corelib/tools/qstringview.h index f3f3f52e08..bd59d4ee2c 100644 --- a/src/corelib/tools/qstringview.h +++ b/src/corelib/tools/qstringview.h @@ -103,12 +103,12 @@ struct IsCompatibleStdBasicString class QStringView { +public: #if defined(Q_OS_WIN) && !defined(Q_COMPILER_UNICODE_STRINGS) typedef wchar_t storage_type; #else typedef char16_t storage_type; #endif -public: typedef const QChar value_type; typedef std::ptrdiff_t difference_type; typedef qssize_t size_type;