diff options
author | Mate Barany <[email protected]> | 2022-09-20 17:51:44 +0200 |
---|---|---|
committer | Mate Barany <[email protected]> | 2022-09-24 01:30:48 +0200 |
commit | ac2154c7e90d68e4477cb383d1090aaa1939efec (patch) | |
tree | 47c48856958afe217cfe140211e6366854ce6f42 | |
parent | 9d6c1f387afda1a73df8cafb10d9b5bf883e5479 (diff) |
qdbusxml2cpp: Remove unnecessary lines
Noticed during the review of QTBUG-98434. The variable includeGuard is
a QString, that is converted into a Latin1 string and then converted
back to QString. Remove these unnecessary lines.
Task-number: QTBUG-103100
Change-Id: I335d49ef990cb6de24031be380b5c2c7e12e961e
Reviewed-by: Marc Mutz <[email protected]>
-rw-r--r-- | src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp index fe5649f5aff..8bed1d8d900 100644 --- a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp +++ b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp @@ -483,7 +483,7 @@ static void writeProxy(const QString &filename, const QDBusIntrospection::Interf } else { includeGuard = u"QDBUSXML2CPP_PROXY"_s; } - includeGuard = "%1"_L1.arg(includeGuard); + hs << "#ifndef " << includeGuard << Qt::endl << "#define " << includeGuard << Qt::endl << Qt::endl; @@ -800,7 +800,7 @@ static void writeAdaptor(const QString &filename, const QDBusIntrospection::Inte } else { includeGuard = u"QDBUSXML2CPP_ADAPTOR"_s; } - includeGuard = "%1"_L1.arg(includeGuard); + hs << "#ifndef " << includeGuard << Qt::endl << "#define " << includeGuard << Qt::endl << Qt::endl; |