diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 11:15:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 13:59:25 +0200 |
commit | 316b07d0af06948c69c1375c67c01903b8eeb134 (patch) | |
tree | d51f01c2f443c82de5a078b90f189af787308ccf /sc/source/filter/excel/xestyle.cxx | |
parent | ff6e8c73adef7c86db12287948025954a4fc7746 (diff) |
loplugin:constvars in package..sc
Change-Id: Ibaa9ebd6440d9229ba313f4c130f5752d432b338
Reviewed-on: https://gerrit.libreoffice.org/77792
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/excel/xestyle.cxx')
-rw-r--r-- | sc/source/filter/excel/xestyle.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index 3ab025d0cb60..4c30945d48e4 100644 --- a/sc/source/filter/excel/xestyle.cxx +++ b/sc/source/filter/excel/xestyle.cxx @@ -583,7 +583,7 @@ void XclExpPaletteImpl::RawReducePalette( sal_uInt32 nPass ) sal_uInt8 nFactor3 = static_cast< sal_uInt8 >( 0x40 >> nPass ); // process each color in the old color list - for(std::unique_ptr<XclListColor> & pOldColor : *xOldList) + for(const std::unique_ptr<XclListColor> & pOldColor : *xOldList) { // get the old list entry const XclListColor* pOldEntry = pOldColor.get(); @@ -2593,14 +2593,14 @@ void XclExpXFBuffer::SaveXml( XclExpXmlStream& rStrm ) sax_fastparser::FSHelperPtr& rStyleSheet = rStrm.GetCurrentStream(); rStyleSheet->startElement(XML_fills, XML_count, OString::number(maFills.size())); - for( auto& rFill : maFills ) + for( const auto& rFill : maFills ) { rFill.SaveXml( rStrm ); } rStyleSheet->endElement( XML_fills ); rStyleSheet->startElement(XML_borders, XML_count, OString::number(maBorders.size())); - for( auto& rBorder : maBorders ) + for( const auto& rBorder : maBorders ) { rBorder.SaveXml( rStrm ); } |