summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-08-28 19:08:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-29 09:33:30 +0200
commit3b15eda58e11a3a46319d4e0489391cb78cec0ab (patch)
tree9f14453db8cdba9ce3f71ca6c8c296e99b94eadb /sw
parent34cba9eefa710b053da817dd2642d2376691824e (diff)
no need for a vector here
Change-Id: Ie456abf9afeda887366b5be2f0161e3ec464e36e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121211 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/porlay.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx
index 9c214ac714ce..2aeced43f463 100644
--- a/sw/source/core/text/porlay.cxx
+++ b/sw/source/core/text/porlay.cxx
@@ -185,18 +185,15 @@ void SwLineLayout::DeleteNext()
{
if (!m_pNext)
return;
- std::vector<SwLineLayout*> aNexts;
SwLineLayout* pNext = m_pNext;
do
{
- aNexts.push_back(pNext);
SwLineLayout* pLastNext = pNext;
pNext = pNext->GetNext();
pLastNext->SetNext(nullptr);
+ delete pLastNext;
}
while (pNext);
- for (auto a : aNexts)
- delete a;
}
void SwLineLayout::Height(const sal_uInt32 nNew, const bool bText)