From 9fe4f23272774ab9132c6878c011507f1c1ca2bd Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 13 Jun 2024 15:00:24 +0200 Subject: [PATCH] QmlJS: Fix severity of some (non-)error "Calls of functions that start with an uppercase letter should use 'new'." is a warning, not an error. Fixes: QTCREATORBUG-27522 Change-Id: If1f82665819053b72e412a51cf4cf3c9b3e91ae2 Reviewed-by: Fabian Kosmale Reviewed-by: Ulf Hermann --- src/libs/qmljs/qmljsstaticanalysismessage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/qmljs/qmljsstaticanalysismessage.cpp b/src/libs/qmljs/qmljsstaticanalysismessage.cpp index 432b97aba72..a58bf43765b 100644 --- a/src/libs/qmljs/qmljsstaticanalysismessage.cpp +++ b/src/libs/qmljs/qmljsstaticanalysismessage.cpp @@ -153,7 +153,7 @@ StaticAnalysisMessages::StaticAnalysisMessages() Tr::tr("Invalid property type \"%1\"."), 1); newMsg(WarnEqualityTypeCoercion, Error, Tr::tr("== and != perform type coercion, use === or !== to avoid it.")); - newMsg(WarnExpectedNewWithUppercaseFunction, Error, + newMsg(WarnExpectedNewWithUppercaseFunction, Warning, Tr::tr("Calls of functions that start with an uppercase letter should use 'new'.")); newMsg(WarnNewWithLowercaseFunction, Error, Tr::tr("Use 'new' only with functions that start with an uppercase letter."));