diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 14:02:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 15:35:37 +0200 |
commit | 95dd183c41c52aa0ed9b5223ae7584f486103a78 (patch) | |
tree | 87b0221cf5ddfc69dc054820cac309e63230c2fb /starmath | |
parent | 8d54827762e2a6702a16b67724a6a5f393d72598 (diff) |
loplugin:constvars in solenv..svtools
Change-Id: Ieb0116321bbddd804db6d1789ea3521c5b220840
Reviewed-on: https://gerrit.libreoffice.org/77807
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 | ||||
-rw-r--r-- | starmath/source/cursor.cxx | 4 | ||||
-rw-r--r-- | starmath/source/document.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index bee538346307..daef8f190e2b 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -363,7 +363,7 @@ void SmElementsControl::LayoutOrPaintContents(vcl::RenderContext *pContext) boxX = nControlWidth / perLine; const SmElement* pCurrentElement = current(); - for (std::unique_ptr<SmElement> & i : maElementList) + for (const std::unique_ptr<SmElement> & i : maElementList) { SmElement* element = i.get(); if (element->isSeparator()) diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index f7d127bd25e9..b6575b8655b3 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -129,7 +129,7 @@ void SmCursor::BuildGraph(){ //Restore anchor and position pointers if(_anchor.IsValid() || _position.IsValid()){ - for(auto &pEntry : *mpGraph) + for(const auto &pEntry : *mpGraph) { if(_anchor == pEntry->CaretPos) mpAnchor = pEntry.get(); @@ -152,7 +152,7 @@ void SmCursor::BuildGraph(){ } bool SmCursor::SetCaretPosition(SmCaretPos pos){ - for(auto &pEntry : *mpGraph) + for(const auto &pEntry : *mpGraph) { if(pEntry->CaretPos == pos) { diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index c3373f5968c9..bd0c67081f51 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -304,7 +304,7 @@ void SmDocShell::UpdateEditEngineDefaultFonts(const Color& aTextColor) aTable[1].nLang = maLinguOptions.nDefaultLanguage_CJK; aTable[2].nLang = maLinguOptions.nDefaultLanguage_CTL; - for (FontDta & rFntDta : aTable) + for (const FontDta & rFntDta : aTable) { LanguageType nLang = (LANGUAGE_NONE == rFntDta.nLang) ? rFntDta.nFallbackLang : rFntDta.nLang; |