X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fcollection.h;h=0595aaca7caddb801d094d9ed847362c669c8be7;hp=bf44773e54f1b0914cd5b46a80130b8022b881ee;hb=4f036ceabe12869c86cb6821f698fbb65cd47ea6;hpb=bbb5a5b00b4008684d5c32b3ea2fd21f7a5fad54 diff --git a/source/collection.h b/source/collection.h index bf44773..0595aac 100644 --- a/source/collection.h +++ b/source/collection.h @@ -299,18 +299,14 @@ protected: template class Tag: public TagBase - { - public: - virtual ~Tag() { } - }; + { }; std::string kwd; TagBase *tag; - CollectionItemTypeBase(): tag(0) { } + CollectionItemTypeBase(); public: - virtual ~CollectionItemTypeBase() - { delete tag; } + virtual ~CollectionItemTypeBase(); virtual void add_to_loader(Collection::Loader &) const = 0; virtual bool can_create() const = 0;