diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-14 15:46:14 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-05-03 01:38:46 +0200 |
commit | 39a6307178603211e070580ed0c25ec65c0b8a70 (patch) | |
tree | e3f95d155a92a0d9c49f6694d9aa4874d49764d0 /src/tools/qlalr/lalr.cpp | |
parent | a0539ed53f45619df7e4aad664369301dd6da091 (diff) |
Tools: use _L1 for for creating Latin-1 string literals
As a drive-by, fix qsizetype -> int narrowing conversion warnings for
the touched lines.
Task-number: QTBUG-98434
Change-Id: I6d4712a71b5ebf3f379f1f98ea476557bce963ef
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/tools/qlalr/lalr.cpp')
-rw-r--r-- | src/tools/qlalr/lalr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/qlalr/lalr.cpp b/src/tools/qlalr/lalr.cpp index 853465c272..3b01f9a3d8 100644 --- a/src/tools/qlalr/lalr.cpp +++ b/src/tools/qlalr/lalr.cpp @@ -39,6 +39,8 @@ #define QLALR_NO_DEBUG_INCLUDES #define QLALR_NO_DEBUG_LOOKAHEADS +using namespace Qt::StringLiterals; + QT_BEGIN_NAMESPACE QTextStream &qerr() { @@ -194,11 +196,11 @@ Grammar::Grammar (): current_prec = 0; current_assoc = NonAssoc; - table_name = QLatin1String ("parser_table"); + table_name = "parser_table"_L1; tk_end = intern ("$end"); terminals.insert (tk_end); - spells.insert (tk_end, QLatin1String("end of file")); + spells.insert (tk_end, "end of file"_L1); /*tk_error= terminals.insert (intern ("error"))*/; } |