Fix formatting in qbytearrayalgorithms.h
Pick-to: 6.3 Change-Id: I1ff15049e73b8ce02101b5d84b2ac02d5fb69abb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
8123a69e6e
commit
196e10bce4
|
|
@ -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>)
|
||||
|
|
|
|||
Loading…
Reference in New Issue