]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/packsource.cpp
Make the File reference in PackSource::Object const
[libs/datafile.git] / source / packsource.cpp
index f4c06b5deab36260d50b4736009977b569db6270..ec7232aa3f057fb51786d146675142483a788490 100644 (file)
@@ -113,7 +113,7 @@ void PackSource::load(Collection &coll, const CollectionItemTypeBase &type, cons
        if(i==objects.end())
                return;
 
-       File &file = i->second->get_file();
+       const File &file = i->second->get_file();
 
        RefPtr<IO::Base> in = file.open();
        Parser parser(*in, file.get_full_name());
@@ -201,7 +201,7 @@ void PackSource::File::collect_objects(ObjectMap &objs) const
 }
 
 
-PackSource::Object::Object(File &f, const string &n, const string &k):
+PackSource::Object::Object(const File &f, const string &n, const string &k):
        file(f),
        name(n),
        keyword(k)