return get_item(items, name);
}
-void Collection::gather_items(list<const Variant *> *vars, list<string> *names, const CollectionItemTypeBase &type, bool include_sources) const
+void Collection::gather_items(vector<const Variant *> *vars, list<string> *names, const CollectionItemTypeBase &type, bool include_sources) const
{
for(ItemMap::const_iterator i=items.begin(); i!=items.end(); ++i)
if(type.check_item_type(i->second))
return 0;
}
-void Collection::add_source(CollectionSource &s)
+void Collection::add_source(const CollectionSource &s)
{
sources.push_back(&s);
}