Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/filesystem/filestream.h')
-rw-r--r--src/filesystem/filestream.h8
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;