QString: don't use noexcept if the method could allocate memory

Change-Id: I49dbd25a41152995d0843fa54d7b3cb4045f3849
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Ahmad Samir 2022-12-11 12:50:43 +02:00
parent f0e98e35a1
commit 6f2a1430c9
1 changed files with 1 additions and 1 deletions

View File

@ -996,7 +996,7 @@ Q_CORE_EXPORT void qt_from_latin1(char16_t *dst, const char *str, size_t size) n
#endif
}
static QVarLengthArray<char16_t> qt_from_latin1_to_qvla(QLatin1StringView str) noexcept
static QVarLengthArray<char16_t> qt_from_latin1_to_qvla(QLatin1StringView str)
{
const qsizetype len = str.size();
QVarLengthArray<char16_t> arr(len);