summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@nokia.com>2011-06-17 06:31:01 (GMT)
committerJyri Tahtela <jyri.tahtela@nokia.com>2011-06-29 11:04:55 (GMT)
commitd5301d0b54b334d4f2e4e7d460d02303a18b5e22 (patch)
treecaa784d05c5ee87eed512fee1519303439f98c52
parent705b0f958a6071341b10cbd51917e1378356491b (diff)
downloadQt-d5301d0b54b334d4f2e4e7d460d02303a18b5e22.zip
Qt-d5301d0b54b334d4f2e4e7d460d02303a18b5e22.tar.gz
Qt-d5301d0b54b334d4f2e4e7d460d02303a18b5e22.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 (cherry picked from commit f078275a2a4b2a279a6fcc24df3c21fe8b21f007)
-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 737bfd0..727fad9 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 {