X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fpacksource.h;fp=source%2Fpacksource.h;h=56590b16cf222f82b5b0c90ad1ab0ce7ecd53c61;hp=35ec8b87a72eb54572057c04328a329e3d364dad;hb=e6d66163e377f6a0761c687913ebf8624508401e;hpb=feb225725f96c1717f391855b7955937215b013e diff --git a/source/packsource.h b/source/packsource.h index 35ec8b8..56590b1 100644 --- a/source/packsource.h +++ b/source/packsource.h @@ -97,14 +97,14 @@ private: class Object { private: - File &file; + const File &file; std::string name; std::string keyword; public: - Object(File &, const std::string &, const std::string &); + Object(const File &, const std::string &, const std::string &); - File &get_file() const { return file; } + const File &get_file() const { return file; } const std::string &get_name() const { return name; } const std::string &get_keyword() const { return keyword; } };