diff options
Diffstat (limited to 'common/config-file.cpp')
-rw-r--r-- | common/config-file.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/config-file.cpp b/common/config-file.cpp index 61437a60ab..9b69452b2e 100644 --- a/common/config-file.cpp +++ b/common/config-file.cpp @@ -87,7 +87,7 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) { // TODO: Detect if a section occurs multiple times (or likewise, if // a key occurs multiple times inside one section). - while (!stream.eos() && !stream.ioFailed()) { + while (!stream.eos() && !stream.err()) { lineno++; // Read a line @@ -179,7 +179,7 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) { if (!section.name.empty()) _sections.push_back(section); - return (!stream.ioFailed() || stream.eos()); + return (!stream.err() || stream.eos()); } bool ConfigFile::saveToFile(const String &filename) { @@ -232,7 +232,7 @@ bool ConfigFile::saveToStream(WriteStream &stream) { } stream.flush(); - return !stream.ioFailed(); + return !stream.err(); } |