summaryrefslogtreecommitdiffstats
path: root/tools/qscxmlc/qscxmlc.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@theqtcompany.com>2016-04-01 16:05:58 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-04-01 16:22:06 +0000
commita7fbb4cb25be73bed55977de208d7650c90fa8ee (patch)
tree9e9b0be54a0e956bb2dd62d74784abeb14778e84 /tools/qscxmlc/qscxmlc.cpp
parente66e09fed1fdbcdfdd8f55983202d946112adec9 (diff)
C++ dumper: flush streams before closing device.
They might still hold some data that's not yet written to the device. Change-Id: I7826437007640a011154b470951b96d58e716f76 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Diffstat (limited to 'tools/qscxmlc/qscxmlc.cpp')
-rw-r--r--tools/qscxmlc/qscxmlc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/qscxmlc/qscxmlc.cpp b/tools/qscxmlc/qscxmlc.cpp
index 1bee7cf..adcc0b4 100644
--- a/tools/qscxmlc/qscxmlc.cpp
+++ b/tools/qscxmlc/qscxmlc.cpp
@@ -66,7 +66,9 @@ int write(TranslationUnit *tu)
QTextStream c(&outCpp);
CppDumper dumper(h, c);
dumper.dump(tu);
+ h.flush();
outH.close();
+ c.flush();
outCpp.close();
return NoError;
}