Use clear() instread of erase(begin(), end()). (PR #1053)

This commit is contained in:
Kelvin Lee
2022-03-12 22:19:34 +11:00
committed by GitHub
parent 51149083e6
commit be846efc83
3 changed files with 12 additions and 12 deletions

View File

@@ -79,7 +79,7 @@ void MemoryTextFile_t::GetLinePointers()
if (! m_bDirty)
return;
m_vLines.erase( m_vLines.begin(), m_vLines.end() );
m_vLines.clear();
char *pBegin = & m_vBuffer[ 0 ];
char *pLast = & m_vBuffer[ m_vBuffer.size()-1 ];