X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpacksource.cpp;h=ec7232aa3f057fb51786d146675142483a788490;hb=e6d66163e377f6a0761c687913ebf8624508401e;hp=f4c06b5deab36260d50b4736009977b569db6270;hpb=feb225725f96c1717f391855b7955937215b013e;p=libs%2Fdatafile.git diff --git a/source/packsource.cpp b/source/packsource.cpp index f4c06b5..ec7232a 100644 --- a/source/packsource.cpp +++ b/source/packsource.cpp @@ -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 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)