diff options
author | Max Horn | 2003-11-30 00:06:27 +0000 |
---|---|---|
committer | Max Horn | 2003-11-30 00:06:27 +0000 |
commit | 81f210544a1996f33905f6b8840d218239529cfb (patch) | |
tree | e8ef34d91147f38e2b8a8db9b177569b7f42f725 /common | |
parent | bbc03e144c7c86f44986e753e791769dee93e894 (diff) | |
download | scummvm-rg350-81f210544a1996f33905f6b8840d218239529cfb.tar.gz scummvm-rg350-81f210544a1996f33905f6b8840d218239529cfb.tar.bz2 scummvm-rg350-81f210544a1996f33905f6b8840d218239529cfb.zip |
cleanup
svn-id: r11432
Diffstat (limited to 'common')
-rw-r--r-- | common/file.cpp | 4 | ||||
-rw-r--r-- | common/file.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/file.cpp b/common/file.cpp index dd12361498..7f81cdddf1 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -188,11 +188,11 @@ void File::close() { _handle = NULL; } -bool File::isOpen() { +bool File::isOpen() const { return _handle != NULL; } -bool File::ioFailed() { +bool File::ioFailed() const { return _ioFailed != 0; } diff --git a/common/file.h b/common/file.h index ff6e18f183..6bf281ff92 100644 --- a/common/file.h +++ b/common/file.h @@ -51,8 +51,8 @@ public: bool open(const char *filename, const Common::String &directory) { return open(filename, directory.c_str()); } bool open(const char *filename, const char *directory = NULL, int mode = kFileReadMode, byte encbyte = 0); void close(); - bool isOpen(); - bool ioFailed(); + bool isOpen() const; + bool ioFailed() const; void clearIOFailed(); bool eof(); uint32 pos(); |