diff options
author | Olivier De Cannière <[email protected]> | 2025-05-06 15:04:31 +0200 |
---|---|---|
committer | Olivier De Cannière <[email protected]> | 2025-05-08 12:31:34 +0200 |
commit | 3665bef0052e375ebe5ee3c4530abf0934af1f06 (patch) | |
tree | 1f1cedf32dfb8edaa002ef3616aa4353f867d866 | |
parent | 1215e4dc60cb2b201bc6ac887358a261e26db4c6 (diff) |
Compiler: Replace non-ascii character from source
Amends db0913a323c28c93c362a9b128f62d00bb83355f
Pick-to: 6.9 6.8 6.5
Change-Id: I7230644465832c9de1b8343b01948a606a15012d
Reviewed-by: Sami Shalayel <[email protected]>
-rw-r--r-- | src/qmlcompiler/qqmljsimportvisitor.cpp | 2 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qmlcompiler/qqmljsimportvisitor.cpp b/src/qmlcompiler/qqmljsimportvisitor.cpp index 72dac04ccd..df5d9cd5ab 100644 --- a/src/qmlcompiler/qqmljsimportvisitor.cpp +++ b/src/qmlcompiler/qqmljsimportvisitor.cpp @@ -1809,7 +1809,7 @@ bool QQmlJSImportVisitor::visit(UiPublicMember *publicMember) auto tryParseAlias = [&]() { typeName.clear(); // type name is useless for alias here, so keep it empty if (!publicMember->statement) { - m_logger->log(QStringLiteral("Invalid alias expression – an initalizer is needed."), + m_logger->log(QStringLiteral("Invalid alias expression - an initalizer is needed."), qmlSyntax, publicMember->memberType->firstSourceLocation()); // TODO: extend warning to cover until endSourceLocation return; } diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index 62592d6a3b..ae2c3ea32a 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -563,7 +563,7 @@ void TestQmllint::dirtyQmlCode_data() 5, 5 } } }; QTest::newRow("invalidAliasTarget1") << QStringLiteral("invalidAliasTarget.qml") << Result { { Message { - QStringLiteral("Invalid alias expression – an initalizer is needed."), + QStringLiteral("Invalid alias expression - an initalizer is needed."), 6, 18 } } }; QTest::newRow("invalidAliasTarget2") << QStringLiteral("invalidAliasTarget.qml") << Result { { Message { |