summaryrefslogtreecommitdiff
path: root/lotuswordpro/inc
diff options
context:
space:
mode:
authorKeldin Maldonado (KNM) <kemaldonado@csumb.edu>2024-02-03 04:41:08 -0800
committerHossein <hossein@libreoffice.org>2024-02-12 13:30:40 +0100
commit5dadcd1ea9e63bcbc0a5d4c4cd95d7d8b37edef9 (patch)
treee688d5280691fb9b7672076f9e468ec2a6342360 /lotuswordpro/inc
parent2220b3718fd831e78485cba2a272e9af08907ddd (diff)
tdf#145538 use range based for loops
using range based for loops instead of index based to increase readability in codebase Change-Id: Ib8c3ec3796fce9228cee1d90beb924128b0dea3f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162950 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'lotuswordpro/inc')
-rw-r--r--lotuswordpro/inc/xfilter/xfinputlist.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/inc/xfilter/xfinputlist.hxx b/lotuswordpro/inc/xfilter/xfinputlist.hxx
index 6e9719f21155..85dae8836e56 100644
--- a/lotuswordpro/inc/xfilter/xfinputlist.hxx
+++ b/lotuswordpro/inc/xfilter/xfinputlist.hxx
@@ -99,10 +99,10 @@ inline void XFInputList::ToXml(IXFStream *pStrm)
pAttrList->AddAttribute( "text:value", " " );
pStrm->StartElement( "text:label" );
pStrm->EndElement( "text:label" );
- for(size_t i=0; i< m_list.size();i++)
+ for(const OUString& rLabel : m_list)
{
pAttrList->Clear();
- pAttrList->AddAttribute( "text:value", m_list[i] );
+ pAttrList->AddAttribute( "text:value", rLabel);
pStrm->StartElement( "text:label" );
pStrm->EndElement( "text:label" );
}