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 <edward.welbourne@qt.io>
bb10
Marc Mutz 2017-04-10 10:17:34 +02:00
parent 13bb46bc3a
commit 30efb14313
1 changed files with 1 additions and 1 deletions

View File

@ -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;