X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcollection.cpp;h=d52ee22399ba7500c880798f2fcf3036d9cd095c;hb=4f036ceabe12869c86cb6821f698fbb65cd47ea6;hp=e60b2009a4fc2c2cebf723ba700e5ab59967a00f;hpb=9f2a99f61887a71a31afb4c56558fcc76be532d1;p=libs%2Fdatafile.git diff --git a/source/collection.cpp b/source/collection.cpp index e60b200..d52ee22 100644 --- a/source/collection.cpp +++ b/source/collection.cpp @@ -9,11 +9,6 @@ Collection::~Collection() delete *i; } -bool Collection::contains(const std::string &n) const -{ - return items.count(n); -} - Collection::Loader::Loader(Collection &c): coll(c) @@ -22,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