Skip to content

Commit

Permalink
QAnyStringView: group the char-ish ctors visually
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit f68443d)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
  • Loading branch information
marcmutz authored and Qt Cherry-pick Bot committed Nov 1, 2024
1 parent 905dfd3 commit 86b676f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/text/qanystringview.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ class QAnyStringView
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
Expand Down

0 comments on commit 86b676f

Please sign in to comment.