diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-24 14:19:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-24 15:48:51 +0000 |
commit | 6ceaec7396d3f8246fa104855eb10aff840d86c8 (patch) | |
tree | 76970bee5063622877cf391d73e4b881326d4a52 /sw | |
parent | 8dc27a0bbf74646969074414c071410ad7d07b74 (diff) |
no need to take address of front()
Change-Id: Ib952e480c486f8ffeb6a4383a192edde005c3c4f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index 402af7f9dff0..95961f277321 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -425,10 +425,10 @@ bool SwGlossaryHdl::Expand( const OUString& rShortName, if( !aFoundArr.empty() ) // one was found { delete pGlossary; - if(1 == aFoundArr.size()) + if (1 == aFoundArr.size()) { - TextBlockInfo_Impl* pData = &aFoundArr.front(); - pGlossary = pGlossaries->GetGroupDoc(pData->sGroupName); + TextBlockInfo_Impl& rData = aFoundArr.front(); + pGlossary = pGlossaries->GetGroupDoc(rData.sGroupName); nFound = pGlossary->GetIndex( aShortName ); } else @@ -447,10 +447,10 @@ bool SwGlossaryHdl::Expand( const OUString& rShortName, pDlg->GetSelectedIdx(): LISTBOX_ENTRY_NOTFOUND; pDlg.disposeAndClear(); - if(LISTBOX_ENTRY_NOTFOUND != nRet) + if (LISTBOX_ENTRY_NOTFOUND != nRet) { - TextBlockInfo_Impl* pData = &aFoundArr[nRet]; - pGlossary = pGlossaries->GetGroupDoc(pData->sGroupName); + TextBlockInfo_Impl& rData = aFoundArr[nRet]; + pGlossary = pGlossaries->GetGroupDoc(rData.sGroupName); nFound = pGlossary->GetIndex( aShortName ); } else |