QAnyStringView: group the char-ish ctors visually
Separate them with blank lines from the other ctor sets, remove an internal blank. Pick-to: 6.5 6.2 Change-Id: I5cb165930520681b68a85b57d05a86c0ca440805 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit f68443d981babe9e2d98b9e7cad53b287d8229c6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
905dfd3915
commit
86b676ffc6
@ -200,13 +200,13 @@ public:
|
||||
constexpr QAnyStringView(Container &&c, QtPrivate::wrapped_t<Container, QByteArray> &&capacity = {})
|
||||
//noexcept(std::is_nothrow_constructible_v<QByteArray, Container>)
|
||||
: QAnyStringView(capacity = std::forward<Container>(c)) {}
|
||||
|
||||
template <typename Char, if_compatible_char<Char> = true>
|
||||
constexpr QAnyStringView(const Char &c) noexcept
|
||||
: QAnyStringView{&c, 1} {}
|
||||
template <typename Char, if_convertible_to<QChar, Char> = true>
|
||||
constexpr QAnyStringView(Char ch, QCharContainer &&capacity = QCharContainer()) noexcept
|
||||
: QAnyStringView{&(capacity.ch = ch), 1} {}
|
||||
|
||||
template <typename Char, typename Container = decltype(QChar::fromUcs4(U'x')),
|
||||
std::enable_if_t<std::is_same_v<Char, char32_t>, bool> = true>
|
||||
constexpr QAnyStringView(Char c, Container &&capacity = {}) noexcept
|
||||
|
Loading…
x
Reference in New Issue
Block a user