]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/packsource.h
Make the File reference in PackSource::Object const
[libs/datafile.git] / source / packsource.h
index 35ec8b87a72eb54572057c04328a329e3d364dad..56590b16cf222f82b5b0c90ad1ab0ce7ecd53c61 100644 (file)
@@ -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; }
        };