summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorTasuku Suzuki <stasuku@gmail.com>2012-11-23 05:34:42 +0900
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-26 11:00:07 +0100
commita33d3a7136c2e0904f03fb9428188cd53c47bd6b (patch)
tree1a62fc0628dd7b0eeabf3b6e3fc6fc9c9aea3458 /src/corelib
parentc7c9daa1617bcf832f353ace8a9824ec934b3b92 (diff)
Enable module build with QT_NO_CODECS
Change-Id: I27239384a7676a81495a9d3f7484975d2f277e8c Reviewed-by: Peter Kümmel <syntheticpp@gmx.net> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/codecs/qicucodec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/codecs/qicucodec.cpp b/src/corelib/codecs/qicucodec.cpp
index c36b4e1e35..4d9d997b6f 100644
--- a/src/corelib/codecs/qicucodec.cpp
+++ b/src/corelib/codecs/qicucodec.cpp
@@ -369,10 +369,12 @@ static QTextCodec *loadQtCodec(const char *name)
return new QUtf32BECodec;
if (!strcmp(name, "UTF-32LE"))
return new QUtf32LECodec;
+#ifndef QT_NO_CODECS
if (!strcmp(name, "TSCII"))
return new QTsciiCodec;
if (!qstrnicmp(name, "iscii", 5))
return QIsciiCodec::create(name);
+#endif
return 0;
}