namespace Msp {
namespace DataFile {
-Collection::Collection():
- fallback(0)
-{ }
-
Collection::~Collection()
{
for(CollectionItemTypeBase *t: types)
}
i = items.find(name);
- return (i!=items.end() ? &i->second : 0);
+ return (i!=items.end() ? &i->second : nullptr);
}
void Collection::gather_items(vector<const Variant *> *vars, list<string> *names, const CollectionItemTypeBase &type, bool include_sources) const
for(CollectionItemTypeBase *t: types)
if(t->is_same_type(type))
return t;
- return 0;
+ return nullptr;
}
CollectionItemTypeBase *Collection::get_type_for_item(const Variant &var) const
for(CollectionItemTypeBase *t: types)
if(t->check_item_type(var))
return t;
- return 0;
+ return nullptr;
}
void Collection::add_source(const CollectionSource &s)
if(IO::Seekable *io = s->open(name))
return io;
- return 0;
+ return nullptr;
}
void Collection::gather_names_from_sources(list<string> &names, const CollectionItemTypeBase &type) const