]> git.tdb.fi Git - libs/datafile.git/commitdiff
Minor reorganization
authorMikko Rasa <tdb@tdb.fi>
Wed, 26 Sep 2012 18:49:22 +0000 (21:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 26 Sep 2012 18:49:22 +0000 (21:49 +0300)
source/collection.cpp
source/collection.h

index d40ab1997f9b78fcec8777f7ce14bd06fc153aea..d52ee22399ba7500c880798f2fcf3036d9cd095c 100644 (file)
@@ -17,5 +17,15 @@ Collection::Loader::Loader(Collection &c):
                (*i)->add_to_loader(*this);
 }
 
+
+CollectionItemTypeBase::CollectionItemTypeBase():
+       tag(0)
+{ }
+
+CollectionItemTypeBase::~CollectionItemTypeBase()
+{
+       delete tag;
+}
+
 } // namespace DataFile
 } // namespace Msp
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;