qdbusxml2cpp: remove unneeded newlines in the end of the cpp files
The tool was writing too many newlines, which either produced unneeded newlines directly in the end of the file, or before the moc-related include. Amends 351b7a31aa24a704dba09121d91cb34190892315. Task-number: QTBUG-133611 Change-Id: I38046cabe86625ecc3da827c434db0dca09a0d63 Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
This commit is contained in:
parent
94465265ac
commit
dd54e32d9a
@ -810,8 +810,7 @@ void QDBusXmlToCpp::writeProxy(const QString &filename,
|
||||
if (!customNamespace.isEmpty()) {
|
||||
hs << "} // end of namespace " << customNamespace << "\n"
|
||||
<< "\n";
|
||||
cs << "} // end of namespace " << customNamespace << "\n"
|
||||
<< "\n";
|
||||
cs << "} // end of namespace " << customNamespace << "\n";
|
||||
}
|
||||
|
||||
if (!skipNamespaces) {
|
||||
@ -1162,8 +1161,7 @@ void QDBusXmlToCpp::writeAdaptor(const QString &filename,
|
||||
if (!customNamespace.isEmpty()) {
|
||||
hs << "} // end of namespace " << customNamespace << "\n"
|
||||
<< "\n";
|
||||
cs << "} // end of namespace " << customNamespace << "\n"
|
||||
<< "\n";
|
||||
cs << "} // end of namespace " << customNamespace << "\n";
|
||||
}
|
||||
|
||||
// close the include guard
|
||||
|
Loading…
x
Reference in New Issue
Block a user