qmlplugindump: Add flush to fix output redirection on windows.
authorChristian Kamm <christian.d.kamm@nokia.com>
Thu, 3 Nov 2011 09:19:33 +0000 (10:19 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 3 Nov 2011 10:39:25 +0000 (11:39 +0100)
Task-number: QTCREATORBUG-5825
Change-Id: I26c2ecb77a89b352de97c70ff17fd076872a636b
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
tools/qmlplugindump/main.cpp

index 19e94c2..f086303 100644 (file)
@@ -738,7 +738,7 @@ int main(int argc, char *argv[])
     qml.writeEndObject();
     qml.writeEndDocument();
 
-    std::cout << bytes.constData();
+    std::cout << bytes.constData() << std::flush;
 
     // workaround to avoid crashes on exit
     QTimer timer;