summaryrefslogtreecommitdiffstats
path: root/tools/qscxmlc/scxmlcppdumper.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2016-04-05 11:36:38 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-04-05 12:22:12 +0000
commitfb492a968b7526fb3c9db5af9c12f15afcde3639 (patch)
tree0f37e8063130fae2e4e4a53ca6c6e0e9c52952da /tools/qscxmlc/scxmlcppdumper.cpp
parentdb2f900e9914897a93b19cd9fd75f7d72ed6bd0b (diff)
Use a plain QIODevice for dumping the C++
All the strings are converted to byte arrays already before. Change-Id: Ibdd565e0560fe97ff9347f8153a03cd60c21a508 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'tools/qscxmlc/scxmlcppdumper.cpp')
-rw-r--r--tools/qscxmlc/scxmlcppdumper.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/qscxmlc/scxmlcppdumper.cpp b/tools/qscxmlc/scxmlcppdumper.cpp
index be123b1..1e3e0b7 100644
--- a/tools/qscxmlc/scxmlcppdumper.cpp
+++ b/tools/qscxmlc/scxmlcppdumper.cpp
@@ -1216,8 +1216,9 @@ private:
QBuffer buf(&clazz.metaData);
buf.open(QIODevice::WriteOnly);
- QTextStream out(&buf);
- Generator(&classDef, QList<QByteArray>(), knownQObjectClasses, QHash<QByteArray, QByteArray>(), out).generateCode();
+ Generator(&classDef, QList<QByteArray>(), knownQObjectClasses,
+ QHash<QByteArray, QByteArray>(), buf).generateCode();
+ buf.close();
}
QString qba(const QString &bytes)