diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx index ea4852752457..5eedef608321 100644 --- a/sw/source/core/unocore/unoobj2.cxx +++ b/sw/source/core/unocore/unoobj2.cxx @@ -228,14 +228,13 @@ void CollectFrameAtNode( const SwNodeIndex& rIdx, 0 != (pAnchorPos = rAnchor.GetContentAnchor()) && pAnchorPos->nNode == rIdx ) { - sw::FrameClient* pNewClient = new sw::FrameClient(const_cast(pFormat)); // OD 2004-05-07 #i28701# - determine insert position for // sorted const sal_Int32 nIndex = pAnchorPos->nContent.GetIndex(); sal_uInt32 nOrder = rAnchor.GetOrder(); - FrameClientSortListEntry entry(nIndex, nOrder, pNewClient); + FrameClientSortListEntry entry(nIndex, nOrder, new sw::FrameClient(const_cast(pFormat))); rFrames.push_back(entry); } }