summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2013-05-01 11:16:28 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-08 00:55:15 +0200
commit263b86a5591082fb173c400a05ac81372072934b (patch)
tree44753b0d5851002031a8f4f6ea22370c92bc35f3 /src/tools
parent758f064558f26eb32a74d4bf426ee443fe6e8f4b (diff)
moc: use fprintf instead of qWarning
qWarning now depends on QT_MESSAGE_PATTERN, depending on that variable. It will show things like the moc process id or the Parser::error function name. We don't want that. Change-Id: I5b35401200f0f7de2442aa77d700a82402081489 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/moc/parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/moc/parser.cpp b/src/tools/moc/parser.cpp
index c0591b69c0..4c754786f7 100644
--- a/src/tools/moc/parser.cpp
+++ b/src/tools/moc/parser.cpp
@@ -64,10 +64,10 @@ void Parser::error(int rollback) {
}
void Parser::error(const char *msg) {
if (msg || error_msg)
- qWarning(ErrorFormatString "Error: %s",
+ fprintf(stderr, ErrorFormatString "Error: %s\n",
currentFilenames.top().constData(), symbol().lineNum, msg?msg:error_msg);
else
- qWarning(ErrorFormatString "Parse error at \"%s\"",
+ fprintf(stderr, ErrorFormatString "Parse error at \"%s\"\n",
currentFilenames.top().constData(), symbol().lineNum, symbol().lexem().data());
exit(EXIT_FAILURE);
}