diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-28 17:01:11 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-05-14 07:50:13 +0200 |
commit | 33bb695a2895fb7199b256a4fd76923c32a8587a (patch) | |
tree | 78bcb9e1611433be28bd788040db7972017976b8 /src/corelib/serialization/qtextstream_p.h | |
parent | 8835c64f795b641619b852c2055605afd9d16442 (diff) |
Start porting QTextStream away from QTextCodec
As a first step add setEncoding/encoding() methods that use the
QStringConverter::Encoding enum, and port all uses of setCodec()/
codec() over to the new API.
Internally QTextStream still uses QTextCodec, this will be ported
over to QStringConverter in a follow-up change.
Change-Id: Icd764cf47b449b57f4ebd010c2dad89e6717d6c0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/serialization/qtextstream_p.h')
-rw-r--r-- | src/corelib/serialization/qtextstream_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/serialization/qtextstream_p.h b/src/corelib/serialization/qtextstream_p.h index 172824d27d..2cf548bca6 100644 --- a/src/corelib/serialization/qtextstream_p.h +++ b/src/corelib/serialization/qtextstream_p.h @@ -118,6 +118,7 @@ public: int stringOffset; QIODevice::OpenMode stringOpenMode; + QStringConverter::Encoding encoding = QStringConverter::Utf8; #if QT_CONFIG(textcodec) // codec QTextCodec *codec; |