From 3381b831eb59570b9318a7a0179429f39b90df84 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 23 Jul 2004 01:39:05 +0000 Subject: Allow subclasses to modify File class members (e.g. to set _ioFailed); change some warnings into errors svn-id: r14302 --- common/file.cpp | 4 ++-- common/file.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/file.cpp b/common/file.cpp index 20876bee37..4dbebebc6e 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -126,7 +126,7 @@ void File::decRef() { bool File::open(const char *filename, AccessMode mode, const char *directory) { if (_handle) { - debug(2, "File %s already opened", filename); + error("File %s already opened", filename); return false; } @@ -135,7 +135,7 @@ bool File::open(const char *filename, AccessMode mode, const char *directory) { } if (mode != kFileReadMode && mode != kFileWriteMode) { - warning("Only read/write mode supported!"); + error("Only read/write mode supported!"); return false; } diff --git a/common/file.h b/common/file.h index ad2c5d5980..a55f4f086c 100644 --- a/common/file.h +++ b/common/file.h @@ -28,7 +28,7 @@ #include "common/stream.h" class File : public Common::ReadStream, public Common::WriteStream { -private: +protected: /** POSIX file handle to the actual file; 0 if no file is open. */ FILE *_handle; -- cgit v1.2.3