]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/collection.h
Minor reorganization
[libs/datafile.git] / source / collection.h
index bf44773e54f1b0914cd5b46a80130b8022b881ee..0595aaca7caddb801d094d9ed847362c669c8be7 100644 (file)
@@ -299,18 +299,14 @@ protected:
 
        template<typename T>
        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;