summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 09:13:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 12:52:36 +0200
commit09c757cbdd3f973c97151203d8ff522141102da7 (patch)
treed1424cd2d3698965f847dc161c282ce1d00f9a94 /unotools
parent22a4b7e621cbb6cab1d82d57c370e3cf33b4e74e (diff)
use for-range on Sequence in testtools..xmloff
Change-Id: I05b02a2f8b4b9091c7de0f7e98409d5b608ed250 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94610 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/securityoptions.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx
index 59b542879655..d81517f255a0 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -997,11 +997,9 @@ bool SvtSecurityOptions::isUntrustedReferer(OUString const & referer) const {
bool SvtSecurityOptions::isTrustedLocationUri(OUString const & uri) const {
MutexGuard g(GetInitMutex());
- for (sal_Int32 i = 0; i != m_pImpl->m_seqSecureURLs.getLength();
- ++i)
+ for (const auto & url : std::as_const(m_pImpl->m_seqSecureURLs))
{
- if (UCBContentHelper::IsSubPath(
- m_pImpl->m_seqSecureURLs[i], uri))
+ if (UCBContentHelper::IsSubPath(url, uri))
{
return true;
}