diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-04-10 10:17:34 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-04-10 14:23:50 +0000 |
commit | 30efb14313e18883d1ab1b348ae3df39d1baf4c2 (patch) | |
tree | be5f6a3239c3e6f324034177e90f96a7c2163400 /src | |
parent | 13bb46bc3ad5e43a77fe2bcdacf9246a23983ce1 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qstringview.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |