summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-31 08:30:44 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-31 08:31:47 (GMT)
commit18fbfdf0f774198e2e1277e064cc3a8eb9dbb29d (patch)
tree56b8a5ff81491f4335e4cfda8fbba0567407b3d4
parent919ac1291c6e7d163b58679eae691f866b40f71b (diff)
downloadQt-18fbfdf0f774198e2e1277e064cc3a8eb9dbb29d.zip
Qt-18fbfdf0f774198e2e1277e064cc3a8eb9dbb29d.tar.gz
Qt-18fbfdf0f774198e2e1277e064cc3a8eb9dbb29d.tar.bz2
Fix compilation with xlC 7: operands to ?: must match.
See 3ae2cab9c8bd1790a00da2755ac036143a3a35f4 for another similar fix. Reviewed-by: Trust Me
-rw-r--r--tools/linguist/shared/po.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/linguist/shared/po.cpp b/tools/linguist/shared/po.cpp
index 796d012..a6795cb 100644
--- a/tools/linguist/shared/po.cpp
+++ b/tools/linguist/shared/po.cpp
@@ -359,7 +359,7 @@ bool loadPO(Translator &translator, QIODevice &dev, ConversionData &cd)
const QChar quote = QLatin1Char('"');
const QChar newline = QLatin1Char('\n');
QTextStream in(&dev);
- in.setCodec(cd.m_codecForSource.isEmpty() ? "UTF-8" : cd.m_codecForSource);
+ in.setCodec(cd.m_codecForSource.isEmpty() ? QByteArray("UTF-8") : cd.m_codecForSource);
bool error = false;
// format of a .po file entry:
@@ -555,7 +555,7 @@ bool savePO(const Translator &translator, QIODevice &dev, ConversionData &cd)
{
bool ok = true;
QTextStream out(&dev);
- out.setCodec(cd.m_outputCodec.isEmpty() ? "UTF-8" : cd.m_outputCodec);
+ out.setCodec(cd.m_outputCodec.isEmpty() ? QByteArray("UTF-8") : cd.m_outputCodec);
bool first = true;
if (translator.messages().isEmpty() || !translator.messages().first().sourceText().isEmpty()) {