X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstringcodec%2Futf16.h;h=1850258a8aaae2857b778865284afc166fc6b234;hb=9990be018b49e5aae27218e1b8c6aefdb63b38a7;hp=7fecf1efaad4ef7918da7b6ed8aa3f4122b69ef3;hpb=93e69e6635f5c47591f42b6979d4d1fce85846d4;p=libs%2Fcore.git diff --git a/source/stringcodec/utf16.h b/source/stringcodec/utf16.h index 7fecf1e..1850258 100644 --- a/source/stringcodec/utf16.h +++ b/source/stringcodec/utf16.h @@ -24,8 +24,8 @@ public: class Encoder: public Codec::Encoder { private: - Endian endian; - bool emit_bom; + Endian endian = BIG; + bool emit_bom = true; public: Encoder(ErrorMode em = DEFAULT, Endian en = BIG); @@ -38,7 +38,7 @@ public: class Decoder: public Codec::Decoder { private: - Endian endian; + Endian endian = AUTO; public: Decoder(ErrorMode em = DEFAULT, Endian en = AUTO); @@ -49,7 +49,7 @@ public: }; private: - Endian endian; + Endian endian = AUTO; public: Utf16(ErrorMode em = DEFAULT, Endian en = AUTO):