X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstringcodec%2Fiso885915.h;h=5d6573043ce61a3950c0eaeeda546c7dd632c30a;hp=f52fdac9e802a8c9e5d386d43316086e59751b36;hb=d3fc0bf0f20f100f2831188c1ce21461d21c2c7a;hpb=94ee3a1040f67d9de2e92fc34049642b08d65b3e diff --git a/source/stringcodec/iso885915.h b/source/stringcodec/iso885915.h index f52fdac..5d65730 100644 --- a/source/stringcodec/iso885915.h +++ b/source/stringcodec/iso885915.h @@ -6,7 +6,7 @@ namespace Msp { namespace StringCodec { -class Iso885915: public Codec +class Iso885915: 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 "ISO-8859-15"; } + Iso885915(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 "ISO-8859-15"; } }; } // namespace StringCodec