summaryrefslogtreecommitdiffstats
path: root/tools/linguist/lconvert
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-03 16:03:52 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-03 16:06:23 (GMT)
commit482159bddec1736a8854dc2db1b75cf856d00255 (patch)
tree26a411466ab467bf62ad937315ddb54dd6f50aaf /tools/linguist/lconvert
parent29e294aee281b7a4dcdd1277eef0fe1552015536 (diff)
downloadQt-482159bddec1736a8854dc2db1b75cf856d00255.zip
Qt-482159bddec1736a8854dc2db1b75cf856d00255.tar.gz
Qt-482159bddec1736a8854dc2db1b75cf856d00255.tar.bz2
don't use qWarning() - or even qFatal()! - gratuitously.
Task-number: QTBUG-8044
Diffstat (limited to 'tools/linguist/lconvert')
-rw-r--r--tools/linguist/lconvert/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/linguist/lconvert/main.cpp b/tools/linguist/lconvert/main.cpp
index 543c405..049ea43 100644
--- a/tools/linguist/lconvert/main.cpp
+++ b/tools/linguist/lconvert/main.cpp
@@ -240,7 +240,7 @@ int main(int argc, char *argv[])
tr.setLanguageCode(Translator::guessLanguageCodeFromFileName(inFiles[0].name));
if (!tr.load(inFiles[0].name, cd, inFiles[0].format)) {
- qWarning() << qPrintable(cd.error());
+ std::cerr << qPrintable(cd.error()) << std::endl;
return 2;
}
tr.reportDuplicates(tr.resolveDuplicates(), inFiles[0].name, verbose);
@@ -248,7 +248,7 @@ int main(int argc, char *argv[])
for (int i = 1; i < inFiles.size(); ++i) {
Translator tr2;
if (!tr2.load(inFiles[i].name, cd, inFiles[i].format)) {
- qWarning() << qPrintable(cd.error());
+ std::cerr << qPrintable(cd.error()) << std::endl;
return 2;
}
tr2.reportDuplicates(tr2.resolveDuplicates(), inFiles[i].name, verbose);
@@ -273,11 +273,11 @@ int main(int argc, char *argv[])
tr.normalizeTranslations(cd);
if (!cd.errors().isEmpty()) {
- qWarning("%s", qPrintable(cd.error()));
+ std::cerr << qPrintable(cd.error()) << std::endl;
cd.clearErrors();
}
if (!tr.save(outFileName, cd, outFormat)) {
- qWarning("%s", qPrintable(cd.error()));
+ std::cerr << qPrintable(cd.error()) << std::endl;
return 3;
}
return 0;