summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs/qsimplecodec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/codecs/qsimplecodec.cpp')
-rw-r--r--src/corelib/codecs/qsimplecodec.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/codecs/qsimplecodec.cpp b/src/corelib/codecs/qsimplecodec.cpp
index aa7521d..0d14f67 100644
--- a/src/corelib/codecs/qsimplecodec.cpp
+++ b/src/corelib/codecs/qsimplecodec.cpp
@@ -676,8 +676,7 @@ QByteArray QSimpleTextCodec::convertFromUnicode(const QChar *in, int length, Con
delete tmp;
}
- QByteArray r;
- r.resize(length);
+ QByteArray r(length, Qt::Uninitialized);
int i = length;
int u;
const QChar* ucp = in;