summaryrefslogtreecommitdiff
path: root/fpicker/source
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source')
-rw-r--r--fpicker/source/office/OfficeControlAccess.cxx4
-rw-r--r--fpicker/source/office/fpinteraction.cxx11
2 files changed, 7 insertions, 8 deletions
diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx
index e8f4e3929d79..47796ec4e58e 100644
--- a/fpicker/source/office/OfficeControlAccess.cxx
+++ b/fpicker/source/office/OfficeControlAccess.cxx
@@ -509,8 +509,8 @@ namespace svt
if ( aTemplateList.hasElements() )
{
- for ( long i=0; i < aTemplateList.getLength(); i++ )
- pListbox->append_text( aTemplateList[i] );
+ for ( const OUString& s : std::as_const(aTemplateList) )
+ pListbox->append_text( s );
}
}
break;
diff --git a/fpicker/source/office/fpinteraction.cxx b/fpicker/source/office/fpinteraction.cxx
index eaaecaf305be..16ea3368ae08 100644
--- a/fpicker/source/office/fpinteraction.cxx
+++ b/fpicker/source/office/fpinteraction.cxx
@@ -63,17 +63,16 @@ namespace svt
Reference< XInteractionRetry > xRetry;
const Sequence< Reference< XInteractionContinuation > > lConts = _rxRequest->getContinuations();
- const Reference< XInteractionContinuation >* pConts = lConts.getConstArray();
- for (sal_Int32 i=0; i<lConts.getLength(); ++i)
+ for (const Reference< XInteractionContinuation >& rCont : lConts)
{
if (!xAbort.is())
- xAbort.set(pConts[i], UNO_QUERY);
+ xAbort.set(rCont, UNO_QUERY);
if (!xApprove.is())
- xApprove.set(pConts[i], UNO_QUERY);
+ xApprove.set(rCont, UNO_QUERY);
if (!xDisapprove.is())
- xDisapprove.set(pConts[i], UNO_QUERY);
+ xDisapprove.set(rCont, UNO_QUERY);
if (!xRetry.is())
- xRetry.set(pConts[i], UNO_QUERY);
+ xRetry.set(rCont, UNO_QUERY);
}
// safe the original request for later analyzing!