summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs/qsimplecodec.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-01-18 13:16:16 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-02-08 10:43:53 (GMT)
commita8d09369fea1574b24309d7b7b2bb373021bf387 (patch)
tree4537704956e55669ff0c6bb07660107b0ab432ab /src/corelib/codecs/qsimplecodec.cpp
parent941b13d52d975069d10093a873cd3a55bb2fd7dd (diff)
downloadQt-a8d09369fea1574b24309d7b7b2bb373021bf387.zip
Qt-a8d09369fea1574b24309d7b7b2bb373021bf387.tar.gz
Qt-a8d09369fea1574b24309d7b7b2bb373021bf387.tar.bz2
Make QTextCodec reentrant.
QTextCodec::codecForName and codedForMib were not reentrant Reviewed-by: Brad Reviewed-by: Denis
Diffstat (limited to 'src/corelib/codecs/qsimplecodec.cpp')
-rw-r--r--src/corelib/codecs/qsimplecodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/codecs/qsimplecodec.cpp b/src/corelib/codecs/qsimplecodec.cpp
index 445565a..4cc7912 100644
--- a/src/corelib/codecs/qsimplecodec.cpp
+++ b/src/corelib/codecs/qsimplecodec.cpp
@@ -681,7 +681,7 @@ QByteArray QSimpleTextCodec::convertFromUnicode(const QChar *in, int length, Con
int u;
const QChar* ucp = in;
unsigned char* rp = (unsigned char *)r.data();
- const unsigned char* rmp = (const unsigned char *)reverseMap->data();
+ const unsigned char* rmp = (const unsigned char *)reverseMap->constData();
int rmsize = (int) reverseMap->size();
while(i--)
{