diff --git a/tools/bluezapi2qt/CppGenerator.cpp b/tools/bluezapi2qt/CppGenerator.cpp --- a/tools/bluezapi2qt/CppGenerator.cpp +++ b/tools/bluezapi2qt/CppGenerator.cpp @@ -256,5 +256,4 @@ stream << " * You should have received a copy of the GNU Lesser General Public\n"; stream << " * License along with this library. If not, see .\n"; stream << " */\n\n"; - stream.flush(); } diff --git a/tools/bluezapi2qt/XmlGenerator.cpp b/tools/bluezapi2qt/XmlGenerator.cpp --- a/tools/bluezapi2qt/XmlGenerator.cpp +++ b/tools/bluezapi2qt/XmlGenerator.cpp @@ -79,25 +79,21 @@ stream << "\n"; stream << "\n"; stream << "\n"; - stream.flush(); } void XmlGenerator::writeFooter(QTextStream &stream) { stream << "\n"; - stream.flush(); } void XmlGenerator::writeInterface(QTextStream &stream, const QString &name) { stream << " \n"; - stream.flush(); } void XmlGenerator::closeInterface(QTextStream &stream) { stream << " \n"; - stream.flush(); } bool XmlGenerator::writeMethod(QTextStream &stream, const Method &method) @@ -107,7 +103,6 @@ // Some beautification if (method.inParameters().empty() && method.outParameters().empty()) { stream << "/>\n"; - stream.flush(); return true; } @@ -131,7 +126,6 @@ } stream << " \n"; - stream.flush(); return true; } @@ -144,7 +138,6 @@ } stream << " \n"; - stream.flush(); return true; } @@ -157,7 +150,6 @@ } stream << " \n"; - stream.flush(); return; }