Fix formatting in qbytearrayalgorithms.h

Pick-to: 6.3
Change-Id: I1ff15049e73b8ce02101b5d84b2ac02d5fb69abb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Sona Kurazyan 2022-02-22 19:42:28 +01:00
parent 8123a69e6e
commit 196e10bce4
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ qsizetype count(QByteArrayView haystack, QByteArrayView needle) noexcept;
// since it includes qbytearrayalgorithms.h. Use the ByteArrayView template type as
// a workaround.
template <typename T, typename ByteArrayView,
typename = std::enable_if_t<std::is_same_v<ByteArrayView, QByteArrayView>>> static inline
T toIntegral(ByteArrayView data, bool *ok, int base)
typename = std::enable_if_t<std::is_same_v<ByteArrayView, QByteArrayView>>>
static inline T toIntegral(ByteArrayView data, bool *ok, int base)
{
auto val = [&] {
if constexpr (std::is_unsigned_v<T>)