From 4f036ceabe12869c86cb6821f698fbb65cd47ea6 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 26 Sep 2012 21:49:22 +0300 Subject: [PATCH] Minor reorganization --- source/collection.cpp | 10 ++++++++++ source/collection.h | 10 +++------- 2 files changed, 13 insertions(+), 7 deletions(-) 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; -- 2.45.2