Skip to content

Commit

Permalink
Fix formatting in qbytearrayalgorithms.h
Browse files Browse the repository at this point in the history
Pick-to: 6.3
Change-Id: I1ff15049e73b8ce02101b5d84b2ac02d5fb69abb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
  • Loading branch information
Sona Kurazyan committed Feb 23, 2022
1 parent 8123a69 commit 196e10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/corelib/text/qbytearrayalgorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>)
Expand Down

0 comments on commit 196e10b

Please sign in to comment.