From 2386bda56b33de68370fa8acc76e39ddddd836c6 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 8 Feb 2009 15:27:59 +0000 Subject: changed inifile and map to use filesystem::IFileStream --- src/filesystem/filestream.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/filesystem/filestream.h') diff --git a/src/filesystem/filestream.h b/src/filesystem/filestream.h index 7dddda9..9739f38 100644 --- a/src/filesystem/filestream.h +++ b/src/filesystem/filestream.h @@ -18,7 +18,7 @@ namespace filesystem class IFileStream : public std::ifstream { public: - IFileStream(const char *name); + IFileStream(const char *name = 0); IFileStream(const std::string &name); @@ -27,10 +27,10 @@ public: void open(const std::string &name); /// name of the file in the virtual filesystem - inline const std::string &name() { return fstream_name; } + inline const std::string &name() const { return fstream_name; } - /// system filename - inline const std::string &filename() { return fstream_filename; } + /// actual dilename + inline const std::string &filename() const { return fstream_filename; } private: std::string fstream_name; -- cgit v1.2.3