diff --git a/ebml/EbmlDummy.h b/ebml/EbmlDummy.h index 2056b1a9..f655627e 100644 --- a/ebml/EbmlDummy.h +++ b/ebml/EbmlDummy.h @@ -14,7 +14,6 @@ namespace libebml { class EBML_DLL_API EbmlDummy : public EbmlBinary { public: - EbmlDummy() : EbmlBinary(EbmlDummy::ClassInfos), DummyId(DummyRawId) {} EbmlDummy(const EbmlId & aId) : EbmlBinary(EbmlDummy::ClassInfos), DummyId(aId) {} bool IsDummy() const override {return true;} @@ -29,7 +28,7 @@ class EBML_DLL_API EbmlDummy : public EbmlBinary { EbmlElement & CreateElement() const override { return Create(); } EbmlElement * Clone() const override { return new EbmlDummy(DummyId); } - static EbmlElement & Create() { return *(new EbmlDummy); } + static EbmlElement & Create() { return *(new EbmlDummy(DummyRawId)); } static const EbmlId & ClassId() { return DummyRawId; }; static const EbmlCallbacks ClassInfos;