X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcollection.cpp;h=129c0a84f76808c14f0a8164b853e0c56d6ccb97;hb=a887b3f7518605c22e4b70eeb9fe136acb2ea632;hp=3e9e4f18d7c676e1ee3008c858e14d4735568e2a;hpb=41230218ca007b56932fd34b79b6f3e3e70764f6;p=libs%2Fdatafile.git diff --git a/source/collection.cpp b/source/collection.cpp index 3e9e4f1..129c0a8 100644 --- a/source/collection.cpp +++ b/source/collection.cpp @@ -44,7 +44,7 @@ const Variant &Collection::get_var(const string &name, const CollectionItemTypeB return get_item(items, name); } -void Collection::gather_items(list *vars, list *names, const CollectionItemTypeBase &type, bool include_sources) const +void Collection::gather_items(vector *vars, list *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)) @@ -92,7 +92,7 @@ CollectionItemTypeBase *Collection::get_type_for_item(const Variant &var) const return 0; } -void Collection::add_source(CollectionSource &s) +void Collection::add_source(const CollectionSource &s) { sources.push_back(&s); }