diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 16:14:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:24:12 +0200 |
commit | dc50b7f952cf339f66fcdf1ac78d7fbeb31014d4 (patch) | |
tree | 596885ca242c8a71fc4afd4958bbbc767ffa93a0 /writerperfect | |
parent | 7841194ed70385627b9f8f88315fb1d0b5b8147c (diff) |
loplugin:sequenceloop in writerfilter..xmlhelp
Change-Id: I7c9c911aa6b051eeab46344f25ea2919605de645
Reviewed-on: https://gerrit.libreoffice.org/77534
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/qa/unit/WpftLoader.cxx | 2 | ||||
-rw-r--r-- | writerperfect/source/writer/EPUBExportFilter.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/writerperfect/qa/unit/WpftLoader.cxx b/writerperfect/qa/unit/WpftLoader.cxx index 4c5696c18067..f29cd89c001f 100644 --- a/writerperfect/qa/unit/WpftLoader.cxx +++ b/writerperfect/qa/unit/WpftLoader.cxx @@ -190,7 +190,7 @@ void WpftLoader::impl_detectFilterName(uno::Sequence<beans::PropertyValue>& rDes uno::Sequence<beans::PropertyValue> aTypes; if (m_xTypeMap->getByName(rTypeName) >>= aTypes) { - for (const auto& rType : aTypes) + for (const auto& rType : std::as_const(aTypes)) { OUString aFilterName; if (("PreferredFilter" == rType.Name) && (rType.Value >>= aFilterName)) diff --git a/writerperfect/source/writer/EPUBExportFilter.cxx b/writerperfect/source/writer/EPUBExportFilter.cxx index 747206ec7e45..d944b080ddd3 100644 --- a/writerperfect/source/writer/EPUBExportFilter.cxx +++ b/writerperfect/source/writer/EPUBExportFilter.cxx @@ -69,7 +69,7 @@ sal_Bool EPUBExportFilter::filter(const uno::Sequence<beans::PropertyValue>& rDe if (aFilterOptions == "layout=fixed") nLayoutMethod = libepubgen::EPUB_LAYOUT_METHOD_FIXED; - for (const auto& rProp : aFilterData) + for (const auto& rProp : std::as_const(aFilterData)) { if (rProp.Name == "EPUBVersion") rProp.Value >>= nVersion; |