summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-18 13:30:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-18 14:25:41 +0100
commitc70f5f32e2537639c7ad7e6e63fb760fd7a4ed90 (patch)
tree8fc5dfb33acca022d41c16d025cf4f0e9e931737 /sw
parent581ec73d0fe5ae09449f0f48d6e3aa7c255ac6c1 (diff)
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>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/frmdlg/frmpage.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx
index 52f4f97474e9..1c19855bd28b 100644
--- a/sw/source/ui/frmdlg/frmpage.cxx
+++ b/sw/source/ui/frmdlg/frmpage.cxx
@@ -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 );