IniFile: Replace a character erase with pop_back()

Same thing, more straightforward.
This commit is contained in:
Lioncash 2017-03-22 19:32:07 -04:00
parent 35959bdaf9
commit 29ca22905b
1 changed files with 2 additions and 2 deletions

View File

@ -427,9 +427,9 @@ bool IniFile::Load(const std::string& filename, bool keep_current_data)
#ifndef _WIN32
// Check for CRLF eol and convert it to LF
if (!line.empty() && line.at(line.size() - 1) == '\r')
if (!line.empty() && line.back() == '\r')
{
line.erase(line.size() - 1);
line.pop_back();
}
#endif