From b415494bf0468b74318b61f114e2ff4ae68c00ee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 May 2016 09:53:50 +0200 Subject: clang-tidy modernize-loop-convert in sw Change-Id: I1f4a0ad6658bd3154c48940296aa8edc1ea1612c Reviewed-on: https://gerrit.libreoffice.org/24876 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/dochdl/gloshdl.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sw/source/uibase/dochdl') diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index 630149f39d9b..08bf9c1b29d3 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -441,10 +441,9 @@ bool SwGlossaryHdl::Expand( const OUString& rShortName, std::unique_ptr pDlg(pFact->CreateSwSelGlossaryDlg(aShortName)); assert(pDlg && "Dialog creation failed!"); - for(size_t i = 0; i < aFoundArr.size(); ++i) + for(TextBlockInfo_Impl & i : aFoundArr) { - TextBlockInfo_Impl* pData = &aFoundArr[i]; - pDlg->InsertGlos(pData->sTitle, pData->sLongName); + pDlg->InsertGlos(i.sTitle, i.sLongName); } pDlg->SelectEntryPos(0); const sal_Int32 nRet = RET_OK == pDlg->Execute()? -- cgit