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.8 6.5 6.2
Change-Id: I5cb165930520681b68a85b57d05a86c0ca440805
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
marcmutz committed Oct 31, 2024
1 parent 6b86d9d commit f68443d
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 @@ -209,13 +209,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{fromCharInternal(c)} {}
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 f68443d

Please sign in to comment.