X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstringcodec%2Fwindows1252.h;fp=source%2Fstringcodec%2Fwindows1252.h;h=44d97c9f14931972c0dec03ba91706d9d7d3d542;hp=b10071cad07dcbf703b6fc564b6aae239336e0c8;hb=d3fc0bf0f20f100f2831188c1ce21461d21c2c7a;hpb=94ee3a1040f67d9de2e92fc34049642b08d65b3e diff --git a/source/stringcodec/windows1252.h b/source/stringcodec/windows1252.h index b10071c..44d97c9 100644 --- a/source/stringcodec/windows1252.h +++ b/source/stringcodec/windows1252.h @@ -6,7 +6,7 @@ namespace Msp { namespace StringCodec { -class Windows1252: public Codec +class Windows1252: public StandardCodec { public: class Encoder: public Codec::Encoder @@ -27,10 +27,9 @@ public: virtual unichar decode_char(const std::string &, std::string::const_iterator &); }; - virtual const char *get_name() const { return "Windows-1252"; } + Windows1252(ErrorMode em = THROW_ON_ERROR): StandardCodec(em) { } - virtual Encoder *create_encoder(ErrorMode em = THROW_ON_ERROR) const { return new Encoder(em); } - virtual Decoder *create_decoder(ErrorMode em = THROW_ON_ERROR) const { return new Decoder(em); } + virtual const char *get_name() const { return "Windows-1252"; } }; } // namespace StringCodec