]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/collection.h
Use const sources in Collection
[libs/datafile.git] / source / collection.h
index 50905ce0d14972d65b24ac37dc74cdd6b5e21be9..612a0af01879deaac213f1883db29df76d3cd57d 100644 (file)
@@ -83,7 +83,7 @@ public:
 private:
        typedef std::map<std::string, Variant> ItemMap;
        typedef std::list<CollectionItemTypeBase *> TypeList;
-       typedef std::list<CollectionSource *> SourceList;
+       typedef std::list<const CollectionSource *> SourceList;
 
        TypeList types;
        ItemMap items;
@@ -264,7 +264,7 @@ private:
 protected:
        /** Adds a source for automatically loading items.  Sources are consulted
        in the order they are added. */
-       void add_source(CollectionSource &);
+       void add_source(const CollectionSource &);
 
 public:
        /** Opens a raw resource, without interpreting it as object data.  Null is