summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/wrtww8gr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-20 11:42:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-20 17:55:01 +0000
commite8260df1d67baf807771cd5c740164a227856515 (patch)
treefbf45c4cdede1d4fcb880342e544fa58cb23e3a6 /sw/source/filter/ww8/wrtww8gr.cxx
parent52350c15b37573e160f25d39565f577fc7189955 (diff)
loplugin:expandablemethodds in sw(part2)
Change-Id: Idc2118899a8063099b66c0f5db40d8402db063d1 Reviewed-on: https://gerrit.libreoffice.org/30083 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/wrtww8gr.cxx')
-rw-r--r--sw/source/filter/ww8/wrtww8gr.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/wrtww8gr.cxx b/sw/source/filter/ww8/wrtww8gr.cxx
index 6f00814e47b5..8834934c115c 100644
--- a/sw/source/filter/ww8/wrtww8gr.cxx
+++ b/sw/source/filter/ww8/wrtww8gr.cxx
@@ -218,14 +218,13 @@ void WW8Export::OutputOLENode( const SwOLENode& rOLENode )
if( xObj.is() )
{
const embed::XEmbeddedObject *pObj = xObj.get();
- WW8OleMap& rPointerToObjId = GetOLEMap();
//Don't want to use pointer ids, as is traditional, because we need
//to put this into a 32bit value, and on 64bit the bottom bits
//might collide and two unrelated ole objects end up considered the
//same. Don't want to simply start at 0 which is a special value
- sal_Int32 nPictureId = SAL_MAX_INT32 - rPointerToObjId.size();
+ sal_Int32 nPictureId = SAL_MAX_INT32 - m_aOleMap.size();
WW8OleMap::value_type entry = std::make_pair(pObj, nPictureId);
- std::pair<WW8OleMap::iterator, bool> aRes = rPointerToObjId.insert(entry);
+ std::pair<WW8OleMap::iterator, bool> aRes = m_aOleMap.insert(entry);
bool bIsNotDuplicate = aRes.second; //.second is false when element already existed
nPictureId = aRes.first->second;
Set_UInt32(pDataAdr, nPictureId);