Fix deprecation warning.
This commit is contained in:
parent
d5dbdab24f
commit
b6542e989c
|
@ -113,13 +113,13 @@ QT_WARNING_PUSH
|
|||
QT_WARNING_DISABLE_CLANG("-Wreserved-identifier")
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
Q_DECL_CONSTEXPR inline auto operator"" _L1(char ch) Q_DECL_NOEXCEPT->QLatin1Char
|
||||
Q_DECL_CONSTEXPR inline auto operator""_L1(char ch)Q_DECL_NOEXCEPT->QLatin1Char
|
||||
{
|
||||
return QLatin1Char(ch);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
Q_DECL_CONSTEXPR inline auto operator"" _L1(const char *str, size_t size) Q_DECL_NOEXCEPT->QLatin1String
|
||||
Q_DECL_CONSTEXPR inline auto operator""_L1(const char *str, size_t size)Q_DECL_NOEXCEPT->QLatin1String
|
||||
{
|
||||
return QLatin1String(str, static_cast<vsizetype>(size));
|
||||
}
|
||||
|
@ -127,13 +127,13 @@ Q_DECL_CONSTEXPR inline auto operator"" _L1(const char *str, size_t size) Q_DECL
|
|||
QT_WARNING_POP
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
inline auto operator"" _ba(const char *str, size_t size) Q_DECL_NOEXCEPT->QByteArray
|
||||
inline auto operator""_ba(const char *str, size_t size)Q_DECL_NOEXCEPT->QByteArray
|
||||
{
|
||||
return {str, static_cast<vsizetype>(size)};
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
inline auto operator"" _s(const char16_t *str, size_t size) Q_DECL_NOEXCEPT->QString
|
||||
inline auto operator""_s(const char16_t *str, size_t size)Q_DECL_NOEXCEPT->QString
|
||||
{
|
||||
return QString::fromUtf16(str, static_cast<vsizetype>(size));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user