summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-06-02 23:16:21 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-06-09 12:54:58 +0200
commit683bac5b9661367bce9a8b0ccd81046183ed9c9d (patch)
tree20452fce337f1d47a5e08d9d00c2cba5603b70da /sw
parent071c49da0c2a42962d4e077fc453434be2a6ecf2 (diff)
another RAII
Change-Id: I11bb3ab21e3434574578cd7fbe03b0b75158e355
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoobj2.cxx3
1 files changed, 1 insertions, 2 deletions
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<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);
}
}