summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@nokia.com>2011-06-17 09:31:01 +0300
committerJyri Tahtela <jyri.tahtela@nokia.com>2011-06-29 14:04:55 +0300
commitd5301d0b54b334d4f2e4e7d460d02303a18b5e22 (patch)
treecaa784d05c5ee87eed512fee1519303439f98c52 /tools
parent705b0f958a6071341b10cbd51917e1378356491b (diff)
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 (cherry picked from commit f078275a2a4b2a279a6fcc24df3c21fe8b21f007)
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 737bfd0ee4..727fad9760 100644
--- a/tools/linguist/lupdate/main.cpp
+++ b/tools/linguist/lupdate/main.cpp
@@ -61,12 +61,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 {