use clear() instead of erase(begin, end)
Change-Id: Ie1dcff4c2e5f52521b4172ef5726413a9d048214 Reviewed-on: https://gerrit.libreoffice.org/67961 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -74,8 +74,8 @@ void OComponentEventThread::impl_clearEventQueue()
|
||||
for ( auto& rEvent : m_aEvents )
|
||||
delete rEvent;
|
||||
m_aEvents.clear();
|
||||
m_aControls.erase( m_aControls.begin(), m_aControls.end() );
|
||||
m_aFlags.erase( m_aFlags.begin(), m_aFlags.end() );
|
||||
m_aControls.clear();
|
||||
m_aFlags.clear();
|
||||
}
|
||||
|
||||
void OComponentEventThread::disposing( const EventObject& evt )
|
||||
|
@@ -298,7 +298,7 @@ static void trim(std::string& str)
|
||||
str.erase(0, pos);
|
||||
}
|
||||
else
|
||||
str.erase(str.begin(), str.end());
|
||||
str.clear();
|
||||
}
|
||||
|
||||
void myparser::traverse( xmlNodePtr parentNode )
|
||||
|
@@ -119,7 +119,7 @@ sal_Int32 BufferedStreamSocket::readLine( OString& aLine )
|
||||
// Prevent buffer from growing massively large.
|
||||
if ( aRead > MAX_LINE_LENGTH )
|
||||
{
|
||||
aBuffer.erase( aBuffer.begin(), aBuffer.end() );
|
||||
aBuffer.clear();
|
||||
return 0;
|
||||
}
|
||||
aRead += aRet;
|
||||
|
@@ -2935,10 +2935,10 @@ void SwFrameAddPage::Reset(const SfxItemSet *rSet )
|
||||
}
|
||||
else
|
||||
m_xPrevLB->set_active(0);
|
||||
aPrevPageFrames.erase(aPrevPageFrames.begin(), aPrevPageFrames.end());
|
||||
aNextPageFrames.erase(aNextPageFrames.begin(), aNextPageFrames.end());
|
||||
aThisPageFrames.erase(aThisPageFrames.begin(), aThisPageFrames.end());
|
||||
aRemainFrames.erase(aRemainFrames.begin(), aRemainFrames.end());
|
||||
aPrevPageFrames.clear();
|
||||
aNextPageFrames.clear();
|
||||
aThisPageFrames.clear();
|
||||
aRemainFrames.clear();
|
||||
|
||||
m_pWrtSh->GetConnectableFrameFormats(*pFormat, sPrevChain, true,
|
||||
aPrevPageFrames, aThisPageFrames, aNextPageFrames, aRemainFrames );
|
||||
|
@@ -120,7 +120,7 @@ namespace DOM
|
||||
{
|
||||
return;
|
||||
} else {
|
||||
m_nodevector.erase(m_nodevector.begin(), m_nodevector.end());
|
||||
m_nodevector.clear();
|
||||
m_bRebuild = false; // don't rebuild until tree is mutated
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user