aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2003-11-30 00:06:27 +0000
committerMax Horn2003-11-30 00:06:27 +0000
commit81f210544a1996f33905f6b8840d218239529cfb (patch)
treee8ef34d91147f38e2b8a8db9b177569b7f42f725 /common
parentbbc03e144c7c86f44986e753e791769dee93e894 (diff)
downloadscummvm-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.cpp4
-rw-r--r--common/file.h4
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();