summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 09:31:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 12:40:57 +0200
commitb2423a480785db6f4883d6314690b22b69d55c22 (patch)
tree52f00376acff4db0e2d522d1068d35a227836ad4 /filter
parent07f9223daae92ac11be2382ecd0095e744f5695f (diff)
loplugin:constvars in drawinglayer..framework
Change-Id: I6e62229fdc38f49f766a306f5264afafe9acefa5 Reviewed-on: https://gerrit.libreoffice.org/77774 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/icgm/chart.cxx2
-rw-r--r--filter/source/msfilter/svdfppt.cxx6
-rw-r--r--filter/source/svg/svgexport.cxx8
-rw-r--r--filter/source/svg/svgfilter.cxx2
4 files changed, 9 insertions, 9 deletions
diff --git a/filter/source/graphicfilter/icgm/chart.cxx b/filter/source/graphicfilter/icgm/chart.cxx
index afd39f69e556..845fab4e0d77 100644
--- a/filter/source/graphicfilter/icgm/chart.cxx
+++ b/filter/source/graphicfilter/icgm/chart.cxx
@@ -33,7 +33,7 @@ CGMChart::CGMChart()
CGMChart::~CGMChart()
{
// delete the whole textentry structure
- for (auto & pTextEntry : maTextEntryList)
+ for (const auto & pTextEntry : maTextEntryList)
{
if ( pTextEntry )
delete pTextEntry->pText;
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index d46cd49eb04a..c9b2e05fd6c2 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -6379,7 +6379,7 @@ void PPTParagraphObj::ApplyTo( SfxItemSet& rSet, boost::optional< sal_Int16 >&
sal_uInt32 PPTParagraphObj::GetTextSize()
{
sal_uInt32 nCount, nRetValue = 0;
- for (std::unique_ptr<PPTPortionObj> & i : m_PortionList)
+ for (const std::unique_ptr<PPTPortionObj> & i : m_PortionList)
{
PPTPortionObj const& rPortionObj = *i;
nCount = rPortionObj.Count();
@@ -6694,7 +6694,7 @@ PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport
&(rSdrPowerPointImport.pPPTStyleSheet->maTxSI) ) )
{
size_t nI = 0;
- for (PPTTextSpecInfo& rSpecInfo : aTextSpecInfoAtomInterpreter.aList)
+ for (const PPTTextSpecInfo& rSpecInfo : aTextSpecInfoAtomInterpreter.aList)
{
sal_uInt32 nCharIdx = rSpecInfo.nCharIdx;
@@ -6870,7 +6870,7 @@ PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport
{
PptInteractiveInfoAtom aInteractiveInfoAtom;
ReadPptInteractiveInfoAtom( rIn, aInteractiveInfoAtom );
- for (SdHyperlinkEntry& rHyperlink : rSdrPowerPointImport.aHyperList)
+ for (const SdHyperlinkEntry& rHyperlink : rSdrPowerPointImport.aHyperList)
{
if ( rHyperlink.nIndex == aInteractiveInfoAtom.nExHyperlinkId )
{
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index 451b94769e14..cce3c3abd45d 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -568,11 +568,11 @@ bool SVGFilter::implExportImpressOrDraw( const Reference< XOutputStream >& rxOSt
Reference< XInterface > xSVGExport = static_cast< css::document::XFilter* >( mpSVGExport );
// create an id for each draw page
- for( auto& rPage : mSelectedPages )
+ for( const auto& rPage : mSelectedPages )
implRegisterInterface( rPage );
// create an id for each master page
- for(uno::Reference<drawing::XDrawPage> & mMasterPageTarget : mMasterPageTargets)
+ for(const uno::Reference<drawing::XDrawPage> & mMasterPageTarget : mMasterPageTargets)
implRegisterInterface( mMasterPageTarget );
SdrModel* pSdrModel(nullptr);
@@ -1237,7 +1237,7 @@ void SVGFilter::implGenerateMetaData()
}
if( mpSVGExport->IsEmbedFonts() && mpSVGExport->IsUsePositionedCharacters() )
{
- for(std::unique_ptr<TextField>& i : aFieldSet)
+ for(const std::unique_ptr<TextField>& i : aFieldSet)
{
i->growCharSet( mTextFieldCharSets );
}
@@ -1256,7 +1256,7 @@ void SVGFilter::implExportAnimations()
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "id", "presentation-animations" );
SvXMLElementExport aDefsContainerElem( *mpSVGExport, XML_NAMESPACE_NONE, "defs", true, true );
- for(uno::Reference<drawing::XDrawPage> & mSelectedPage : mSelectedPages)
+ for(const uno::Reference<drawing::XDrawPage> & mSelectedPage : mSelectedPages)
{
Reference< XPropertySet > xProps( mSelectedPage, UNO_QUERY );
diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index 3e0e24e9af2c..7fccc61ecb55 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -522,7 +522,7 @@ bool SVGFilter::filterImpressOrDraw( const Sequence< PropertyValue >& rDescripto
* The master page are put in an unordered set.
*/
ObjectSet aMasterPageTargetSet;
- for(uno::Reference<drawing::XDrawPage> & mSelectedPage : mSelectedPages)
+ for(const uno::Reference<drawing::XDrawPage> & mSelectedPage : mSelectedPages)
{
uno::Reference< drawing::XMasterPageTarget > xMasterPageTarget( mSelectedPage, uno::UNO_QUERY );
if( xMasterPageTarget.is() )