diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-30 14:40:06 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-30 14:41:09 (GMT) |
commit | 3ae2cab9c8bd1790a00da2755ac036143a3a35f4 (patch) | |
tree | 6fc8b9f0f00a7eba8c4981e43588ae40bbcfc9f4 /tools/linguist | |
parent | 5e966d96419fb68ac1f9528e72f1083b32eecdbb (diff) | |
download | Qt-3ae2cab9c8bd1790a00da2755ac036143a3a35f4.zip Qt-3ae2cab9c8bd1790a00da2755ac036143a3a35f4.tar.gz Qt-3ae2cab9c8bd1790a00da2755ac036143a3a35f4.tar.bz2 |
Fix compilation with xlC 7: operands to ?: must match.
"../shared/qm.cpp", line 556.45: 1540-0207 (S) No common type found for operands with type "const char [7]" and "QByteArray".
Reviewed-by: Trust Me
Diffstat (limited to 'tools/linguist')
-rw-r--r-- | tools/linguist/shared/qm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/linguist/shared/qm.cpp b/tools/linguist/shared/qm.cpp index 638e997..dc681f5 100644 --- a/tools/linguist/shared/qm.cpp +++ b/tools/linguist/shared/qm.cpp @@ -553,7 +553,7 @@ bool loadQM(Translator &translator, QIODevice &dev, ConversionData &cd) //qDebug() << "NUMITEMS: " << numItems; QTextCodec *codec = QTextCodec::codecForName( - cd.m_codecForSource.isEmpty() ? "Latin1" : cd.m_codecForSource); + cd.m_codecForSource.isEmpty() ? QByteArray("Latin1") : cd.m_codecForSource); QTextCodec *utf8Codec = 0; if (codec->name() != "UTF-8") utf8Codec = QTextCodec::codecForName("UTF-8"); |