std::vector<CollectionItemTypeBase *> types;
ItemMap items;
std::vector<const CollectionSource *> sources;
- Collection *fallback;
+ Collection *fallback = nullptr;
public:
- Collection();
virtual ~Collection();
/** Adds an object into the collection. The name must not pre-exist. The
protected:
struct ExtractorBase
{
- virtual ~ExtractorBase() { }
+ virtual ~ExtractorBase() = default;
};
template<typename T>
std::vector<std::string> suffixes;
std::vector<ExtractorBase *> extractors;
- CollectionItemTypeBase() { }
+ CollectionItemTypeBase() = default;
public:
virtual ~CollectionItemTypeBase();
for(CollectionItemTypeBase *t: types)
if(dynamic_cast<CollectionItemType<T> *>(t))
return t;
- CollectionItemTypeBase *type = 0;
+ CollectionItemTypeBase *type = nullptr;
for(CollectionItemTypeBase *t: types)
if(t->can_extract<T>())
{