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());
}
-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)
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; }
};