From: Mikko Rasa Date: Wed, 26 Sep 2012 18:49:22 +0000 (+0300) Subject: Minor reorganization X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4f036ceabe12869c86cb6821f698fbb65cd47ea6;p=libs%2Fdatafile.git Minor reorganization --- diff --git a/source/collection.cpp b/source/collection.cpp index d40ab19..d52ee22 100644 --- a/source/collection.cpp +++ b/source/collection.cpp @@ -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 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;