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 <marc.mutz@qt.io>
This commit is contained in:
Mate Barany 2022-09-20 17:51:44 +02:00
parent 9d6c1f387a
commit ac2154c7e9

View File

@ -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;