summaryrefslogtreecommitdiffstats
path: root/tools/linguist/shared/translator.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-03 16:05:47 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-03 16:16:48 (GMT)
commit068177288001c46896d6b04c520731adb56ed288 (patch)
treef5588086116c8fa1d3d16bdefc544c6ad4fa5c49 /tools/linguist/shared/translator.h
parent482159bddec1736a8854dc2db1b75cf856d00255 (diff)
downloadQt-068177288001c46896d6b04c520731adb56ed288.zip
Qt-068177288001c46896d6b04c520731adb56ed288.tar.gz
Qt-068177288001c46896d6b04c520731adb56ed288.tar.bz2
remove spurious empty lines in the linguist tools' output
ConversionData::error() does already newline-terminate the strings.
Diffstat (limited to 'tools/linguist/shared/translator.h')
-rw-r--r--tools/linguist/shared/translator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/linguist/shared/translator.h b/tools/linguist/shared/translator.h
index bb199f0..cfb2178 100644
--- a/tools/linguist/shared/translator.h
+++ b/tools/linguist/shared/translator.h
@@ -92,7 +92,7 @@ public:
bool sortContexts() const { return m_sortContexts; }
void appendError(const QString &error) { m_errors.append(error); }
- QString error() const { return m_errors.join(QLatin1String("\n")); }
+ QString error() const { return m_errors.isEmpty() ? QString() : m_errors.join(QLatin1String("\n")) + QLatin1Char('\n'); }
QStringList errors() const { return m_errors; }
void clearErrors() { m_errors.clear(); }