aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();