From 6f2a1430c9bde188beb631d0a181850b5d6ad0ea Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Sun, 11 Dec 2022 12:50:43 +0200 Subject: [PATCH] QString: don't use noexcept if the method could allocate memory Change-Id: I49dbd25a41152995d0843fa54d7b3cb4045f3849 Reviewed-by: Thiago Macieira --- src/corelib/text/qstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 078ada91c1..f8e3b412a8 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -996,7 +996,7 @@ Q_CORE_EXPORT void qt_from_latin1(char16_t *dst, const char *str, size_t size) n #endif } -static QVarLengthArray qt_from_latin1_to_qvla(QLatin1StringView str) noexcept +static QVarLengthArray qt_from_latin1_to_qvla(QLatin1StringView str) { const qsizetype len = str.size(); QVarLengthArray arr(len);