summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwritedeclaration.cpp
diff options
context:
space:
mode:
authorMate Barany <mate.barany@qt.io>2022-09-01 17:48:08 +0200
committerMate Barany <mate.barany@qt.io>2022-09-14 14:25:38 +0200
commit8d7d210aa59f4c6e7d370ec7b1fdee6dd8f15324 (patch)
tree9345f13fc1e74b4c7458d37fd3425203aaf9a545 /src/tools/uic/cpp/cppwritedeclaration.cpp
parent3a7027a1aee307ba5329b7b8a2f006523e080b58 (diff)
uic: Change some QLatin1String literals to QString literals
While working on QTBUG-98434 some potential improvements were found in the pre-existing code. Some of the QLatin1String literals are used to initialize QStrings or are converted to QStrings and so it makes sense to replace them with QString literals. As a related change, change the type of namespaceDelimitier from QString to QL1SV, since it is used only for a function call and that function has an overload to take QL1SV. Task-number: QTBUG-103100 Change-Id: I56db6ddd84ad2a7133a765bb49ecd8f962ac5c13 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwritedeclaration.cpp')
-rw-r--r--src/tools/uic/cpp/cppwritedeclaration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/uic/cpp/cppwritedeclaration.cpp b/src/tools/uic/cpp/cppwritedeclaration.cpp
index 2730ef97971..f11b2233c6a 100644
--- a/src/tools/uic/cpp/cppwritedeclaration.cpp
+++ b/src/tools/uic/cpp/cppwritedeclaration.cpp
@@ -120,7 +120,7 @@ void WriteDeclaration::acceptUI(DomUI *node)
void WriteDeclaration::acceptWidget(DomWidget *node)
{
- QString className = "QWidget"_L1;
+ QString className = u"QWidget"_s;
if (node->hasAttributeClass())
className = node->attributeClass();
@@ -137,7 +137,7 @@ void WriteDeclaration::acceptSpacer(DomSpacer *node)
void WriteDeclaration::acceptLayout(DomLayout *node)
{
- QString className = "QLayout"_L1;
+ QString className = u"QLayout"_s;
if (node->hasAttributeClass())
className = node->attributeClass();