IOFile: Rename Clear() to ClearError() for clarity.

This commit is contained in:
Admiral H. Curtiss
2022-01-29 06:01:03 +01:00
parent 36cfcb530f
commit a336c4386c
9 changed files with 9 additions and 9 deletions

View File

@ -94,7 +94,7 @@ bool IOFile::Close()
void IOFile::SetHandle(std::FILE* file)
{
Close();
Clear();
ClearError();
m_file = file;
}

View File

@ -103,7 +103,7 @@ public:
bool Flush();
// clear error state
void Clear()
void ClearError()
{
m_good = true;
std::clearerr(m_file);

View File

@ -100,7 +100,7 @@ public:
m_num_entries++;
}
m_file.Clear();
m_file.ClearError();
m_file.Seek(last_valid_value_start, File::SeekOrigin::Begin);
return m_num_entries;