diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-03-22 19:32:07 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-03-22 19:32:10 -0400 |
| commit | 29ca22905b76eb6640128afa8a19d76290774d33 (patch) | |
| tree | 1f4eb7d6e2d4b4472eee9b93cecc4a10ff2312cb /Source/Core/Common/IniFile.cpp | |
| parent | 35959bdaf9090b993a24d22484b43da9c7ff2fb0 (diff) | |
IniFile: Replace a character erase with pop_back()
Same thing, more straightforward.
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
| -rw-r--r-- | Source/Core/Common/IniFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index 8877d0f61d..1543d0f96f 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -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 |
