Kaydet (Commit) 683bac5b authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

another RAII

Change-Id: I11bb3ab21e3434574578cd7fbe03b0b75158e355
üst 071c49da
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment