summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@nokia.com>2011-06-17 06:31:01 (GMT)
committerSimo Fält <simo.falt@nokia.com>2011-06-17 06:31:01 (GMT)
commitf078275a2a4b2a279a6fcc24df3c21fe8b21f007 (patch)
treee858c4560397844b19586e8dbebb936eebfa9a06 /tools
parentc390312f8fbea14ac4df0c5185ca814054f448d8 (diff)
downloadQt-f078275a2a4b2a279a6fcc24df3c21fe8b21f007.zip
Qt-f078275a2a4b2a279a6fcc24df3c21fe8b21f007.tar.gz
Qt-f078275a2a4b2a279a6fcc24df3c21fe8b21f007.tar.bz2
QTBUG-19500 lupdate fails to run from the Mac binary package on Mac OS X 10.5
Replaced std::cout with QTextStream Reviewed-by: Eckhart Köppen
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/lupdate/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/linguist/lupdate/main.cpp b/tools/linguist/lupdate/main.cpp
index 34bb792..ab88083 100644
--- a/tools/linguist/lupdate/main.cpp
+++ b/tools/linguist/lupdate/main.cpp
@@ -62,12 +62,14 @@ static QString m_defaultExtensions;
static void printOut(const QString & out)
{
- std::cout << qPrintable(out);
+ QTextStream stream(stdout);
+ stream << out;
}
static void printErr(const QString & out)
{
- std::cerr << qPrintable(out);
+ QTextStream stream(stderr);
+ stream << out;
}
class LU {