summaryrefslogtreecommitdiff
path: root/svtools/source/control/inettbc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control/inettbc.cxx')
-rw-r--r--svtools/source/control/inettbc.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index ccfb0c021548..5120dfdbb53f 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -1023,9 +1023,12 @@ void SvtMatchContext_Impl::doExecute()
aObj.SetSmartProtocol( eSmartProt == INetProtocol::NotValid ? INetProtocol::Http : eSmartProt );
for( ;; )
{
- for(std::vector<OUString>::iterator i = aPickList.begin(); schedule() && i != aPickList.end(); ++i)
+ for(const auto& rPick : aPickList)
{
- aCurObj.SetURL(*i);
+ if (!schedule())
+ break;
+
+ aCurObj.SetURL(rPick);
aCurObj.SetSmartURL( aCurObj.GetURLNoPass());
aCurMainURL = aCurObj.GetMainURL( INetURLObject::DecodeMechanism::NONE );
@@ -1264,9 +1267,12 @@ void MatchContext_Impl::doExecute()
aObj.SetSmartProtocol( eSmartProt == INetProtocol::NotValid ? INetProtocol::Http : eSmartProt );
for( ;; )
{
- for(std::vector<OUString>::iterator i = aPickList.begin(); schedule() && i != aPickList.end(); ++i)
+ for(const auto& rPick : aPickList)
{
- aCurObj.SetURL(*i);
+ if (!schedule())
+ break;
+
+ aCurObj.SetURL(rPick);
aCurObj.SetSmartURL( aCurObj.GetURLNoPass());
aCurMainURL = aCurObj.GetMainURL( INetURLObject::DecodeMechanism::NONE );