diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 13:12:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:22:51 +0200 |
commit | 56a9a3a2d7f64c277b3dadd5a910a1183a47ac69 (patch) | |
tree | ce7fda93df80dc857b67d12d4de6f263296b1492 /sfx2/source/bastyp | |
parent | 2a6f30194afb745df7412b95b53f8165b237da71 (diff) |
loplugin:sequenceloop in sdext..sfx2
Change-Id: If9924566b21e50cad7a12d781ac5d337de0684ab
Reviewed-on: https://gerrit.libreoffice.org/77526
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/bastyp')
-rw-r--r-- | sfx2/source/bastyp/fltfnc.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/bastyp/frmhtmlw.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index b5970c7ac874..1fec7f92d379 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -434,7 +434,7 @@ ErrCode SfxFilterMatcher::GuessFilterControlDefaultUI( SfxMedium& rMedium, std: uno::Sequence< beans::PropertyValue > lDescriptor = aDescriptor.getAsConstPropertyValueList(); sTypeName = xDetection->queryTypeByDescriptor(lDescriptor, true); // lDescriptor is used as In/Out param ... don't use aDescriptor.getAsConstPropertyValueList() directly! - for (const auto& rProp : lDescriptor) + for (const auto& rProp : std::as_const(lDescriptor)) { if (rProp.Name == "FilterName") // Type detection picked a preferred filter for this format. @@ -926,7 +926,7 @@ void SfxFilterContainer::ReadSingleFilter_Impl( bool bEnabled = true ; // first get directly available properties - for( const auto& rFilterProperty : lFilterProperties ) + for( const auto& rFilterProperty : std::as_const(lFilterProperties) ) { if ( rFilterProperty.Name == "FileFormatVersion" ) { @@ -982,7 +982,7 @@ void SfxFilterContainer::ReadSingleFilter_Impl( if( aResult >>= lTypeProperties ) { // get indirect available properties then (types) - for( const auto& rTypeProperty : lTypeProperties ) + for( const auto& rTypeProperty : std::as_const(lTypeProperties) ) { if ( rTypeProperty.Name == "ClipboardFormat" ) { @@ -1104,7 +1104,7 @@ void SfxFilterContainer::ReadFilters_Impl( bool bUpdate ) if( xFilterCFG.is() && xTypeCFG.is() ) { // select right query to get right set of filters for search module - uno::Sequence< OUString > lFilterNames = xFilterCFG->getElementNames(); + const uno::Sequence< OUString > lFilterNames = xFilterCFG->getElementNames(); if ( lFilterNames.hasElements() ) { // If list of filters already exist ... diff --git a/sfx2/source/bastyp/frmhtmlw.cxx b/sfx2/source/bastyp/frmhtmlw.cxx index 0cff220f48ae..c1e4063dffd6 100644 --- a/sfx2/source/bastyp/frmhtmlw.cxx +++ b/sfx2/source/bastyp/frmhtmlw.cxx @@ -211,7 +211,7 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL, uno::Reference<beans::XPropertySetInfo> xPropInfo = xUserDefinedProps->getPropertySetInfo(); DBG_ASSERT(xPropInfo.is(), "UserDefinedProperties Info is null"); - uno::Sequence<beans::Property> props = xPropInfo->getProperties(); + const uno::Sequence<beans::Property> props = xPropInfo->getProperties(); for (const auto& rProp : props) { try |