diff options
author | Stijn Buys <ingar@osirion.org> | 2009-02-08 15:27:59 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-02-08 15:27:59 +0000 |
commit | 2386bda56b33de68370fa8acc76e39ddddd836c6 (patch) | |
tree | 6de102324d33a70625c90c5839c17dcdc26ac47d /src/filesystem/filestream.h | |
parent | c8a6ff1c0693ca1bd9025dcbdd7c22e3d193f8dd (diff) |
changed inifile and map to use filesystem::IFileStream
Diffstat (limited to 'src/filesystem/filestream.h')
-rw-r--r-- | src/filesystem/filestream.h | 8 |
1 files changed, 4 insertions, 4 deletions
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; |