another RAII
Change-Id: I11bb3ab21e3434574578cd7fbe03b0b75158e355
This commit is contained in:
@@ -228,14 +228,13 @@ void CollectFrameAtNode( const SwNodeIndex& rIdx,
|
||||
0 != (pAnchorPos = rAnchor.GetContentAnchor()) &&
|
||||
pAnchorPos->nNode == rIdx )
|
||||
{
|
||||
sw::FrameClient* pNewClient = new sw::FrameClient(const_cast<SwFrameFormat*>(pFormat));
|
||||
|
||||
// OD 2004-05-07 #i28701# - determine insert position for
|
||||
// sorted <rFrameArr>
|
||||
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<SwFrameFormat*>(pFormat)));
|
||||
rFrames.push_back(entry);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user