From 65b5d318140c7ff846455a37ec7ae63e635bcdcf Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 19 May 2009 11:42:14 +0000 Subject: COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses) svn-id: r40725 --- backends/saves/savefile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/saves/savefile.cpp b/backends/saves/savefile.cpp index 98a3d6b449..29d477a6c1 100644 --- a/backends/saves/savefile.cpp +++ b/backends/saves/savefile.cpp @@ -50,14 +50,14 @@ bool SaveFileManager::renameSavefile(const char *oldFilename, const char *newFil if (buffer && outFile) { inFile->read(buffer, size); - bool error = inFile->ioFailed(); + bool error = inFile->err(); delete inFile; inFile = 0; if (!error) { outFile->write(buffer, size); outFile->finalize(); - if (!outFile->ioFailed()) { + if (!outFile->err()) { success = removeSavefile(oldFilename); } } -- cgit v1.2.3