X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstringcodec%2Futf16.h;fp=source%2Fstringcodec%2Futf16.h;h=1850258a8aaae2857b778865284afc166fc6b234;hp=7fecf1efaad4ef7918da7b6ed8aa3f4122b69ef3;hb=122846f0881673770d88eff7d925ecf25c01b62e;hpb=b116e161e377da0e4e52f07745ecb2d22f962ae9 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):