QtMiscUtils: fix return type of two helpers, should be bool

Pointed out by Oswald Buddenhagen.

Pick-to: 6.5
Change-Id: I3e38e0aee4555a1f37b8dbade38b6a0b3428f74c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Ahmad Samir 2023-02-10 15:04:15 +02:00 committed by Thiago Macieira
parent ce7b4c734b
commit 310f5e955f

View File

@ -31,7 +31,7 @@ constexpr inline char toHexLower(char32_t value) noexcept
return "0123456789abcdef"[value & 0xF];
}
[[nodiscard]] constexpr inline int isHexDigit(char32_t c) noexcept
[[nodiscard]] constexpr inline bool isHexDigit(char32_t c) noexcept
{
return (c >= '0' && c <= '9')
|| (c >= 'A' && c <= 'F')
@ -51,7 +51,7 @@ constexpr inline char toOct(char32_t value) noexcept
return char('0' + (value & 0x7));
}
[[nodiscard]] constexpr inline int isOctalDigit(char32_t c) noexcept
[[nodiscard]] constexpr inline bool isOctalDigit(char32_t c) noexcept
{
return c >= '0' && c <= '7';
}